5 writes to NumWeightUpdates
Microsoft.ML.StandardTrainers (5)
Standard\Online\AveragedLinear.cs (5)
201NumWeightUpdates += NumNoUpdates; 238NumWeightUpdates += NumNoUpdates; 286NumWeightUpdates++; 291NumWeightUpdates += Gain; 301NumWeightUpdates *= scale;
10 references to NumWeightUpdates
Microsoft.ML.StandardTrainers (10)
Standard\Online\AveragedLinear.cs (6)
185return (TotalBias + VectorUtils.DotProduct(in feat, in TotalWeights)) / (float)NumWeightUpdates; 211VectorUtils.ScaleInto(in TotalWeights, 1 / (float)NumWeightUpdates, ref Weights); 213Bias = TotalBias / (float)NumWeightUpdates; 247rate /= MathUtils.Sqrt((float)NumWeightUpdates + NumNoUpdates + 1); 270VectorUtils.ScaleInto(in TotalWeights, 1 / (float)NumWeightUpdates, ref Weights); 272Bias = TotalBias / (float)NumWeightUpdates;
Standard\Online\AveragedPerceptron.cs (2)
144VectorUtils.ScaleBy(ref weights, 1 / (float)NumWeightUpdates); 145bias = TotalBias / (float)NumWeightUpdates;
Standard\Online\OnlineGradientDescent.cs (2)
121VectorUtils.ScaleBy(ref weights, 1 / (float)NumWeightUpdates); 122bias = TotalBias / (float)NumWeightUpdates;