1 write to _sumWeights
Microsoft.ML.Data (1)
Evaluators\MultiOutputRegressionEvaluator.cs (1)
269
_sumWeights
+= weight;
14 references to _sumWeights
Microsoft.ML.Data (14)
Evaluators\MultiOutputRegressionEvaluator.cs (14)
180
public Double L1 =>
_sumWeights
> 0 ? _sumL1 /
_sumWeights
: 0;
182
public Double L2 =>
_sumWeights
> 0 ? _sumL2 /
_sumWeights
: 0;
184
public Double Dist =>
_sumWeights
> 0 ? _sumEuclidean /
_sumWeights
: 0;
191
if (
_sumWeights
== 0)
194
res[i] = _l1Loss[i] /
_sumWeights
;
204
if (
_sumWeights
== 0)
207
res[i] = _l2Loss[i] /
_sumWeights
;
217
if (
_sumWeights
== 0)
220
res[i] = Math.Sqrt(_l2Loss[i] /
_sumWeights
);
230
if (
_sumWeights
== 0)
233
res[i] = _fnLoss[i] /
_sumWeights
;