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