23 references to AddMult
Microsoft.ML.Core.Tests (1)
UnitTests\TestVBuffer.cs (1)
589VectorUtils.AddMult(in a, c, ref actualDst);
Microsoft.ML.Ensemble (1)
OutputCombiners\BaseMultiAverager.cs (1)
58VectorUtils.AddMult(in src[i], w, ref dst);
Microsoft.ML.KMeansClustering (1)
KMeansPlusPlusTrainer.cs (1)
1124VectorUtils.AddMult(in features, -1, ref CachedSum[previousCluster]);
Microsoft.ML.PCA (1)
PcaTrainer.cs (1)
318VectorUtils.AddMult(in cursor.Features, cursor.Weight, ref mean);
Microsoft.ML.StandardTrainers (19)
LdSvm\LdSvmTrainer.cs (3)
355VectorUtils.AddMult(in features, tempGradW, ref tempW[l]); 363VectorUtils.AddMult(in features, tempGradThetaPrime, ref tempThetaPrime[l]); 371VectorUtils.AddMult(in features, tempGradTheta, ref tempTheta[m]);
Optimizer\LineSearch.cs (2)
468VectorUtils.AddMult(in _c1, d1, ref grad); 469VectorUtils.AddMult(in _c2, d2, ref grad);
Optimizer\Optimizer.cs (2)
262VectorUtils.AddMult(in _yList[i], alphas[i], ref _dir); 280VectorUtils.AddMult(in _sList[i], -alphas[i] - beta, ref _dir);
Optimizer\SgdOptimizer.cs (4)
205VectorUtils.AddMult(in grad, scale, ref step); 212VectorUtils.AddMult(in step, -stepSize, ref x); 213VectorUtils.AddMult(in x, (float)1 / (n + 1), ref avg); 347VectorUtils.AddMult(in _newGrad, -1, ref _dir);
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
357VectorUtils.AddMult(in x, -1, ref oldWeights);
Standard\Online\AveragedLinear.cs (5)
199VectorUtils.AddMult(in Weights, NumNoUpdates * WeightsScale, ref TotalWeights); 236VectorUtils.AddMult(in Weights, NumNoUpdates * WeightsScale, ref TotalWeights); 251VectorUtils.AddMult(in feat, biasUpdate / WeightsScale, ref Weights); 284VectorUtils.AddMult(in Weights, WeightsScale, ref TotalWeights); 289VectorUtils.AddMult(in Weights, Gain * WeightsScale, ref TotalWeights);
Standard\Online\LinearSvm.cs (2)
199VectorUtils.AddMult(in feat, currentBiasUpdate, ref _weightsUpdate); 234VectorUtils.AddMult(in weightsUpdate, rate * weightsUpdateScale / (_numBatchExamples * WeightsScale), ref Weights);