2 writes to _absentFeaturesLogProb
Microsoft.ML.StandardTrainers (2)
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (2)
303_absentFeaturesLogProb = CalculateAbsentFeatureLogProbabilities(_labelHistogram, _featureHistogram, _featureCount); 349_absentFeaturesLogProb = ctx.Reader.ReadDoubleArray(_labelCount);
4 references to _absentFeaturesLogProb
Microsoft.ML.StandardTrainers (4)
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (4)
383ctx.Writer.WriteDoublesNoCount(_absentFeaturesLogProb.AsSpan(0, _labelCount)); 448var learnedAbsentFeatureLogProb = ctx.AddInitializer(_absentFeaturesLogProb, new long[] { _absentFeaturesLogProb.Length, 1 }, "absentFeaturesLogProb"); 631(float)(logProb + (_absentFeaturesLogProb[iLabel] - absentFeatureLogProb));