16 references to TestHelper
Microsoft.ML.Core.Tests (16)
UnitTests\TestLoss.cs (16)
60TestHelper(loss, 1, 2, 0, 0);
61TestHelper(loss, 1, 1, 0, 0, false);
62TestHelper(loss, 1, 0.99, 0.01, 1, false);
63TestHelper(loss, 1, 0.5, 0.5, 1);
65TestHelper(loss, 0, 0.5, 1.5, -1);
66TestHelper(loss, 0, -0.5, 0.5, -1);
67TestHelper(loss, 0, -1, 0, 0, false);
68TestHelper(loss, 0, -2, 0, 0);
76TestHelper(loss, 1, 3, Math.Exp(-3), Math.Exp(-3));
77TestHelper(loss, 0, 3, Math.Exp(3), -Math.Exp(3));
78TestHelper(loss, 0, -3, Math.Exp(-3), -Math.Exp(-3));
85TestHelper(loss, 3, 2, 1, 2);
86TestHelper(loss, 3, 4, 1, -2);
87TestHelper(loss, 3, 5, 4, -4);
88TestHelper(loss, 0, -3, 9, 6);
89TestHelper(loss, -3, -5, 4, 4);