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