14 references to Norm
Microsoft.ML.Core.Tests (1)
UnitTests\TestVBuffer.cs (1)
106Assert.True(CompareNumbersWithTolerance(l2, VectorUtils.Norm(in a), digitsOfPrecision: tol));
Microsoft.ML.StandardTrainers (13)
Optimizer\DifferentiableFunction.cs (5)
190float normX = VectorUtils.Norm(x); 216float norm = VectorUtils.Norm(dir); 256float normX = VectorUtils.Norm(x); 295float normX = VectorUtils.Norm(x); 333float normDir = VectorUtils.Norm(dir);
Optimizer\L1Optimizer.cs (1)
209float alpha = (Iter == 1 ? (1 / VectorUtils.Norm(_dir)) : 1);
Optimizer\LineSearch.cs (3)
517float norm = VectorUtils.Norm(grad); 528Console.WriteLine(VectorUtils.Norm(grad)); 537Console.WriteLine(VectorUtils.Norm(grad));
Optimizer\OptimizationMonitor.cs (1)
380float norm = VectorUtils.Norm(grad);
Optimizer\Optimizer.cs (1)
395float alpha = (Iter == 1 ? (1 / VectorUtils.Norm(_dir)) : 1);
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
358float normDiff = VectorUtils.Norm(oldWeights);
Standard\Online\LinearSvm.cs (1)
243float normalizer = 1 / (MathUtils.Sqrt(_lambda) * VectorUtils.Norm(Weights) * Math.Abs(WeightsScale));