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)
307Single denom = VectorUtils.Distance(in centroidI, in centroidJ); 364VectorUtils.ScaleBy(ref _clusterCentroids[i], (Single)(1.0 / _numInstancesOfClstr[i])); 372var distance = VectorUtils.Distance(in _clusterCentroids[assigned], in features); 463VectorUtils.Add(in _features, ref _clusterCentroids[_indicesArr[0]]);
Evaluators\MultiOutputRegressionEvaluator.cs (3)
516dst = VectorUtils.L1Distance(in label, in score); 526dst = VectorUtils.L2DistSquared(in label, in score); 536dst = MathUtils.Sqrt(VectorUtils.L2DistSquared(in label, in score));
Scorers\ClusteringScorer.cs (1)
111int index = VectorUtils.ArgMin(in score);
Scorers\MulticlassClassificationScorer.cs (1)
579int index = VectorUtils.ArgMax(in score);