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)
383
ctx.Writer.WriteDoublesNoCount(
_absentFeaturesLogProb
.AsSpan(0, _labelCount));
448
var learnedAbsentFeatureLogProb = ctx.AddInitializer(
_absentFeaturesLogProb
, new long[] {
_absentFeaturesLogProb
.Length, 1 }, "absentFeaturesLogProb");
631
(float)(logProb + (
_absentFeaturesLogProb
[iLabel] - absentFeatureLogProb));