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