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