6 writes to TotalWeights
Microsoft.ML.StandardTrainers (6)
Standard\Online\AveragedLinear.cs (6)
164Weights.CopyTo(ref TotalWeights); 199VectorUtils.AddMult(in Weights, NumNoUpdates * WeightsScale, ref TotalWeights); 236VectorUtils.AddMult(in Weights, NumNoUpdates * WeightsScale, ref TotalWeights); 284VectorUtils.AddMult(in Weights, WeightsScale, ref TotalWeights); 289VectorUtils.AddMult(in Weights, Gain * WeightsScale, ref TotalWeights); 300VectorUtils.ScaleBy(ref TotalWeights, scale);
5 references to TotalWeights
Microsoft.ML.StandardTrainers (5)
Standard\Online\AveragedLinear.cs (3)
185return (TotalBias + VectorUtils.DotProduct(in feat, in TotalWeights)) / (float)NumWeightUpdates; 211VectorUtils.ScaleInto(in TotalWeights, 1 / (float)NumWeightUpdates, ref Weights); 270VectorUtils.ScaleInto(in TotalWeights, 1 / (float)NumWeightUpdates, ref Weights);
Standard\Online\AveragedPerceptron.cs (1)
143TotalWeights.CopyTo(ref weights);
Standard\Online\OnlineGradientDescent.cs (1)
120TotalWeights.CopyTo(ref weights);