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)
271public double MicroAvgAccuracy { get { return _numInstances > 0 ? _numCorrect / _numInstances : 0; } } 276if (_numInstances == 0) 293public double LogLoss { get { return _numInstances > 0 ? _totalLogLoss / _numInstances : 0; } } 304entropy += _sumWeightsOfClass[i] * Math.Log(_sumWeightsOfClass[i] / _numInstances); 306entropy /= -_numInstances; 312public double[] AllTopKAccuracy => CumulativeSum(_seenRanks.Take(OutputTopKAcc ?? 0).Select(l => l / _numInstances)).ToArray();