10 references to Sum
Microsoft.ML.Core.Tests (2)
UnitTests\TestVBuffer.cs (2)
830
var l1Dist = a.Items(all: true).Zip(b.Items(all: true), (av, bv) => Math.Abs(av.Value - bv.Value)).
Sum
();
833
var dot = a.Items(all: true).Zip(b.Items(all: true), (av, bv) => av.Value * bv.Value).
Sum
();
Microsoft.ML.OnnxTransformerTest (5)
OnnxTransformTests.cs (5)
455
Assert.Equal(0, buffera.GetValues().ToArray().
Sum
());
456
Assert.Equal(30, bufferb.GetValues().ToArray().
Sum
());
495
Assert.Equal(0, buffera.GetValues().ToArray().
Sum
());
496
Assert.Equal(30, bufferb.GetValues().ToArray().
Sum
());
516
Assert.Equal(30, bufferb.GetValues().ToArray().
Sum
());
Microsoft.ML.Predictor.Tests (2)
TestPredictors.cs (2)
740
Assert.Equal(score, 0.4 * scores.
Sum
() / predCount, 0.00001);
947
CompareNumbersWithTolerance(score, scores.
Sum
() / predCount, digitsOfPrecision: 5);
Microsoft.ML.Transforms (1)
Dracula\CountTable.cs (1)
66
var priorSum = priorCounts.
Sum
();