4 writes to WeightSum
Microsoft.ML.StandardTrainers (4)
Standard\LogisticRegression\LbfgsPredictorBase.cs (4)
473
WeightSum
= 0;
502
WeightSum
+= cursor.Weight;
575
WeightSum
= 0;
612
WeightSum
+= cursor.Weight;
8 references to WeightSum
Microsoft.ML.StandardTrainers (8)
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
752
float scaleFactor = 1 / (float)
WeightSum
;
Standard\LogisticRegression\LogisticRegression.cs (4)
225
Contracts.Assert(
WeightSum
> 0);
234
float deviance = (float)(2 * loss *
WeightSum
);
258
Double priorPosRate = _posWeight /
WeightSum
;
261
0f : (float)(2 *
WeightSum
* MathUtils.Entropy(priorPosRate, true));
Standard\LogisticRegression\MulticlassLogisticRegression.cs (3)
313
Contracts.Assert(
WeightSum
> 0);
321
float deviance = (float)(2 * loss *
WeightSum
);
351
nullDeviance -= (float)(2 * _prior[iLabel] * Math.Log(_prior[iLabel] /
WeightSum
));