1 write to SumWeights
Microsoft.ML.Data (1)
Evaluators\RegressionEvaluatorBase.cs (1)
165
SumWeights
+= weight;
15 references to SumWeights
Microsoft.ML.Data (15)
Evaluators\QuantileRegressionEvaluator.cs (6)
100
if (
SumWeights
!= 0)
103
res[i.Key] = Math.Sqrt(i.Value /
SumWeights
);
114
if (
SumWeights
!= 0)
117
res[i.Key] = 1 - i.Value / (TotalLabelSquaredW - TotalLabelW * TotalLabelW /
SumWeights
);
193
Contracts.Assert(
SumWeights
> 0);
197
var inv = 1 /
SumWeights
;
Evaluators\RegressionEvaluator.cs (6)
97
return
SumWeights
> 0 ? Math.Sqrt(TotalL2Loss /
SumWeights
) : 0;
107
if (
SumWeights
> 0)
109
if ((TotalLabelSquaredW - TotalLabelW * TotalLabelW /
SumWeights
) == 0)
111
return 1 - TotalL2Loss / (TotalLabelSquaredW - TotalLabelW * TotalLabelW /
SumWeights
);
127
dst = src /
SumWeights
;
Evaluators\RegressionEvaluatorBase.cs (3)
130
if (
SumWeights
> 0)
141
if (
SumWeights
> 0)
155
if (
SumWeights
> 0)