24 references to VectorUtils
Microsoft.ML.AutoML (4)
Sweepers\SmacSweeper.cs (2)
373
row[0] =
VectorUtils
.GetMean(leafValues[i]);
374
row[1] =
VectorUtils
.GetStandardDeviation(leafValues[i]);
Tuner\SmacTuner.cs (2)
345
meansAndStdDevs[0] =
VectorUtils
.GetMean(leafValues);
346
meansAndStdDevs[1] =
VectorUtils
.GetStandardDeviation(leafValues);
Microsoft.ML.FastTree (16)
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (10)
195
double mean =
VectorUtils
.GetMean(_observations[j]);
207
featureStds[j] = Math.Sqrt(
VectorUtils
.GetDotProduct(_observations[j], _observations[j]));
209
VectorUtils
.DivideInPlace(_observations[j], (float)featureStds[j]);
212
float targetMean = (float)
VectorUtils
.GetMean(_targets);
223
float targetStd = (float)Math.Sqrt(
VectorUtils
.GetDotProduct(_targets, _targets));
224
VectorUtils
.DivideInPlace(_targets, targetStd);
228
feature2residualCorrelations[j] =
VectorUtils
.GetDotProduct(_targets, _observations[j]);
231
double[][] feature2featureCorrelations =
VectorUtils
.AllocateDoubleMatrix(_numFeatures, maxAllowedFeaturesAlongPath);
328
feature2featureCorrelations[j][numberOfInputs - 1] =
VectorUtils
.GetDotProduct(_observations[j], _observations[k]);
390
pFeature2residualCorrelations[j] -=
VectorUtils
.GetDotProduct(denseActiveSet, feature2featureCorrelations[j], numberOfInputs);
Training\EnsembleCompression\LassoFit.cs (1)
41
CompressedWeights =
VectorUtils
.AllocateDoubleMatrix(numberOfLambdas, maxAllowedFeaturesAlongPath);
Training\OptimizationAlgorithms\ConjugateGradientDescent.cs (5)
38
double beta =
VectorUtils
.GetDotProduct(_currentGradient,
VectorUtils
.Subtract(_currentGradient, _previousGradient)) /
VectorUtils
.GetDotProduct(_previousGradient, _previousGradient);
47
VectorUtils
.MutiplyInPlace(previousDk, beta);
48
VectorUtils
.AddInPlace(previousDk, _currentGradient);
Microsoft.ML.Sweeper (4)
Algorithms\KdoSweeper.cs (2)
168
double rMean =
VectorUtils
.GetMean(randomVals);
171
double rVar = Math.Pow(
VectorUtils
.GetStandardDeviation(randomVals), 2) + 1e-10;
Algorithms\SmacSweeper.cs (2)
364
row[0] =
VectorUtils
.GetMean(leafValues[i]);
365
row[1] =
VectorUtils
.GetStandardDeviation(leafValues[i]);