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)
197
for (int i = classID; i < TrainedEnsemble.NumTrees; i +=
_numberOfClassesIncludingNan
)
215
Host.Assert(
_numberOfClassesIncludingNan
> 1, "Must know the number of classes before creating a predictor.");
216
Host.Assert(TrainedEnsemble.NumTrees %
_numberOfClassesIncludingNan
== 0, "Number of trees should be a multiple of number of classes.");
266
_numberOfClasses =
_numberOfClassesIncludingNan
;
274
if (
_numberOfClassesIncludingNan
< 0)
311
float defaultLabel =
_numberOfClassesIncludingNan
- 1;
321
int minimumExampleCountPerLeaf = LightGbmTrainerOptions.MinimumExampleCountPerLeaf ?? DefaultMinDataPerLeaf(numRow, numberOfLeaves,
_numberOfClassesIncludingNan
);
338
ch.Assert(
_numberOfClassesIncludingNan
> 1);
339
GbmOptions["num_class"] =
_numberOfClassesIncludingNan
;