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); 334Host.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); 344for (int iFeature = 0; iFeature < _featureCount; iFeature += 1) 351_inputType = new VectorDataViewType(NumberDataViewType.Single, _featureCount); 376ctx.Writer.Write(_featureCount); 598Host.Check(src.Length == _featureCount, "Invalid number of features passed.");