3 writes to NumNoUpdates
Microsoft.ML.StandardTrainers (3)
Standard\Online\AveragedLinear.cs (3)
202
NumNoUpdates
= 0;
239
NumNoUpdates
= 0;
264
NumNoUpdates
++;
9 references to NumNoUpdates
Microsoft.ML.StandardTrainers (9)
Standard\Online\AveragedLinear.cs (9)
196
if (_args.LazyUpdate &&
NumNoUpdates
> 0)
199
VectorUtils.AddMult(in Weights,
NumNoUpdates
* WeightsScale, ref TotalWeights);
200
TotalBias += Bias *
NumNoUpdates
;
201
NumWeightUpdates +=
NumNoUpdates
;
234
if (_args.LazyUpdate && _args.Averaged &&
NumNoUpdates
> 0 && TotalMultipliers * _args.AveragedTolerance <= PendingMultipliers)
236
VectorUtils.AddMult(in Weights,
NumNoUpdates
* WeightsScale, ref TotalWeights);
237
TotalBias += Bias *
NumNoUpdates
* WeightsScale;
238
NumWeightUpdates +=
NumNoUpdates
;
247
rate /= MathUtils.Sqrt((float)NumWeightUpdates +
NumNoUpdates
+ 1);