1 write to _sumWeightsOfClass
Microsoft.ML.Data (1)
Evaluators\MulticlassClassificationEvaluator.cs (1)
332
_sumWeightsOfClass
= new double[numClasses];
8 references to _sumWeightsOfClass
Microsoft.ML.Data (8)
Evaluators\MulticlassClassificationEvaluator.cs (8)
282
if (
_sumWeightsOfClass
[i] > 0)
285
macroAvgAccuracy += ConfusionTable[i][i] /
_sumWeightsOfClass
[i];
303
if (
_sumWeightsOfClass
[i] != 0)
304
entropy +=
_sumWeightsOfClass
[i] * Math.Log(
_sumWeightsOfClass
[i] / _numInstances);
322
res[i] =
_sumWeightsOfClass
[i] > 0 ? _totalPerClassLogLoss[i] /
_sumWeightsOfClass
[i] : 0;
346
_sumWeightsOfClass
[label] += weight;