11 references to VectorUtils
Microsoft.ML.Core.Tests (2)
UnitTests\TestVBuffer.cs (2)
540
/// Naive version of <see cref="
VectorUtils
.AddMultWithOffset(in VBuffer{float}, float, ref VBuffer{float}, int)"/>,
1077
/// we see in <see cref="
VectorUtils
"/> and <see cref="VBufferUtils"/>, e.g., various
Microsoft.ML.Data (9)
Evaluators\ClusteringEvaluator.cs (4)
307
Single denom =
VectorUtils
.Distance(in centroidI, in centroidJ);
364
VectorUtils
.ScaleBy(ref _clusterCentroids[i], (Single)(1.0 / _numInstancesOfClstr[i]));
372
var distance =
VectorUtils
.Distance(in _clusterCentroids[assigned], in features);
463
VectorUtils
.Add(in _features, ref _clusterCentroids[_indicesArr[0]]);
Evaluators\MultiOutputRegressionEvaluator.cs (3)
516
dst =
VectorUtils
.L1Distance(in label, in score);
526
dst =
VectorUtils
.L2DistSquared(in label, in score);
536
dst = MathUtils.Sqrt(
VectorUtils
.L2DistSquared(in label, in score));
Scorers\ClusteringScorer.cs (1)
111
int index =
VectorUtils
.ArgMin(in score);
Scorers\MulticlassClassificationScorer.cs (1)
579
int index =
VectorUtils
.ArgMax(in score);