25 references to ScaleBy
Microsoft.ML.Core.Tests (3)
UnitTests\TestVBuffer.cs (3)
57VectorUtils.ScaleBy(ref actualDst, c); 77VectorUtils.ScaleBy(ref dst, c); 122VectorUtils.ScaleBy(ref a, d);
Microsoft.ML.Data (1)
Evaluators\ClusteringEvaluator.cs (1)
364VectorUtils.ScaleBy(ref _clusterCentroids[i], (Single)(1.0 / _numInstancesOfClstr[i]));
Microsoft.ML.Ensemble (2)
OutputCombiners\BaseMultiAverager.cs (1)
62VectorUtils.ScaleBy(ref dst, 1 / weightTotal);
OutputCombiners\BaseMultiCombiner.cs (1)
93VectorUtils.ScaleBy(ref values[i], 1 / sum);
Microsoft.ML.KMeansClustering (1)
KMeansPlusPlusTrainer.cs (1)
1214VectorUtils.ScaleBy(ref Centroids[i], (float)(1.0 / ClusterSizes[i]));
Microsoft.ML.PCA (1)
PcaTrainer.cs (1)
341VectorUtils.ScaleBy(ref mean, invn);
Microsoft.ML.StandardTrainers (17)
LdSvm\LdSvmTrainer.cs (3)
299VectorUtils.ScaleBy(ref tempW[i], coef); 301VectorUtils.ScaleBy(ref tempTheta[i], coef); 303VectorUtils.ScaleBy(ref tempThetaPrime[i], coef);
Optimizer\DifferentiableFunction.cs (3)
98VectorUtils.ScaleBy(ref _tempGrads[chunkIndex], 0); 131VectorUtils.ScaleBy(ref gradient, 0); 217VectorUtils.ScaleBy(ref dir, 1 / norm);
Optimizer\Optimizer.cs (1)
273VectorUtils.ScaleBy(ref _dir, _roList[lastGoodRo] / yDotY);
Optimizer\SgdOptimizer.cs (2)
183VectorUtils.ScaleBy(ref step, _momentum); 346VectorUtils.ScaleBy(ref _dir, beta);
Standard\LinearModelParameters.cs (1)
348VectorUtils.ScaleBy(ref weights, (float)1 / models.Count);
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
788VectorUtils.ScaleBy(ref gradient, scaleFactor);
Standard\Online\AveragedLinear.cs (1)
300VectorUtils.ScaleBy(ref TotalWeights, scale);
Standard\Online\AveragedPerceptron.cs (1)
144VectorUtils.ScaleBy(ref weights, 1 / (float)NumWeightUpdates);
Standard\Online\OnlineGradientDescent.cs (1)
121VectorUtils.ScaleBy(ref weights, 1 / (float)NumWeightUpdates);
Standard\Online\OnlineLinear.cs (1)
183VectorUtils.ScaleBy(ref Weights, WeightsScale);
Standard\SdcaBinary.cs (2)
2155VectorUtils.ScaleBy(ref weights, (float)weightScaling); // normalize the weights 2198VectorUtils.ScaleBy(ref weights, (float)weightScaling); // restore the true weights