We're storing the count of rows in an int. This causes an overflow for large datasets. In my case, Criteo 1TB w/ 4.4B rows. Recommend changing to a long.
|
_totalTrainingCount = _labelHistogram.Sum(); |
Error:
Unexpected exception: Arithmetic operation resulted in an overflow., 'System.OverflowException'
at System.Linq.Enumerable.Sum(IEnumerable`1 source)
We're storing the count of rows in an
int. This causes an overflow for large datasets. In my case, Criteo 1TB w/ 4.4B rows. Recommend changing to along.machinelearning/src/Microsoft.ML.StandardTrainers/Standard/MulticlassClassification/MulticlassNaiveBayesTrainer.cs
Line 242 in d2bf3e7
Error: