2 writes to _totalTrainingCount
Microsoft.ML.StandardTrainers (2)
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (2)
300
_totalTrainingCount
= _labelHistogram.Sum();
350
_totalTrainingCount
= _labelHistogram.Sum();
2 references to _totalTrainingCount
Microsoft.ML.StandardTrainers (2)
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (2)
443
var trainingCount = ctx.AddInitializer((float)
_totalTrainingCount
, "totalTrainingCount");
608
double logProb = Math.Log(labelOccurrenceCount /
_totalTrainingCount
);