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