7 writes to _numberOfClassesIncludingNan
Microsoft.ML.LightGbm (7)
LightGbmMulticlassTrainer.cs (7)
138_numberOfClassesIncludingNan = -1; 251_numberOfClassesIncludingNan = -1; 265_numberOfClassesIncludingNan = int.Parse(split[1].Split(':')[1]); 296_numberOfClassesIncludingNan = keyType.GetCountAsInt32(Host) + 1; 298_numberOfClassesIncludingNan = keyType.GetCountAsInt32(Host); 304_numberOfClassesIncludingNan = (int)maxLabel + 2; 306_numberOfClassesIncludingNan = (int)maxLabel + 1;
9 references to _numberOfClassesIncludingNan
Microsoft.ML.LightGbm (9)
LightGbmMulticlassTrainer.cs (9)
197for (int i = classID; i < TrainedEnsemble.NumTrees; i += _numberOfClassesIncludingNan) 215Host.Assert(_numberOfClassesIncludingNan > 1, "Must know the number of classes before creating a predictor."); 216Host.Assert(TrainedEnsemble.NumTrees % _numberOfClassesIncludingNan == 0, "Number of trees should be a multiple of number of classes."); 266_numberOfClasses = _numberOfClassesIncludingNan; 274if (_numberOfClassesIncludingNan < 0) 311float defaultLabel = _numberOfClassesIncludingNan - 1; 321int minimumExampleCountPerLeaf = LightGbmTrainerOptions.MinimumExampleCountPerLeaf ?? DefaultMinDataPerLeaf(numRow, numberOfLeaves, _numberOfClassesIncludingNan); 338ch.Assert(_numberOfClassesIncludingNan > 1); 339GbmOptions["num_class"] = _numberOfClassesIncludingNan;