1 write to _numInstances
Microsoft.ML.Data (1)
Evaluators\MulticlassClassificationEvaluator.cs (1)
343
_numInstances
+= weight;
8 references to _numInstances
Microsoft.ML.Data (8)
Evaluators\MulticlassClassificationEvaluator.cs (8)
271
public double MicroAvgAccuracy { get { return
_numInstances
> 0 ? _numCorrect /
_numInstances
: 0; } }
276
if (
_numInstances
== 0)
293
public double LogLoss { get { return
_numInstances
> 0 ? _totalLogLoss /
_numInstances
: 0; } }
304
entropy += _sumWeightsOfClass[i] * Math.Log(_sumWeightsOfClass[i] /
_numInstances
);
306
entropy /= -
_numInstances
;
312
public double[] AllTopKAccuracy => CumulativeSum(_seenRanks.Take(OutputTopKAcc ?? 0).Select(l => l /
_numInstances
)).ToArray();