2 writes to _featureCount
Microsoft.ML.StandardTrainers (2)
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (2)
302
_featureCount
= featureCount;
333
_featureCount
= ctx.Reader.ReadInt32();
9 references to _featureCount
Microsoft.ML.StandardTrainers (9)
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (9)
303
_absentFeaturesLogProb = CalculateAbsentFeatureLogProbabilities(_labelHistogram, _featureHistogram,
_featureCount
);
304
_inputType = new VectorDataViewType(NumberDataViewType.Single,
_featureCount
);
334
Host.CheckDecode(
_featureCount
>= 0);
341
_featureHistogram[iLabel] = ctx.Reader.ReadLongArray(
_featureCount
);
343
_featureHistogram[iLabel] = Array.ConvertAll(ctx.Reader.ReadIntArray(
_featureCount
) ?? new int[0], x => (long)x);
344
for (int iFeature = 0; iFeature <
_featureCount
; iFeature += 1)
351
_inputType = new VectorDataViewType(NumberDataViewType.Single,
_featureCount
);
376
ctx.Writer.Write(
_featureCount
);
598
Host.Check(src.Length ==
_featureCount
, "Invalid number of features passed.");