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)
443var trainingCount = ctx.AddInitializer((float)_totalTrainingCount, "totalTrainingCount"); 608double logProb = Math.Log(labelOccurrenceCount / _totalTrainingCount);