MCPcopy Index your code
hub / github.com/WinVector/Logistic / testNormGH

Method testNormGH

test/com/winvector/logistic/TestOpt.java:87–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 }
86
87 public void testNormGH() {
88 // norm penalty should put max at 0 (and max value should be 0)
89 final int dim = 3;
90 final VectorFn f = new NormPenalty(dim,1.0e-2);
91 final double[] x = new double[dim];
92 x[1] = 0.1;
93 x[2] = -0.1;
94 testGradAndHessian(f,x,1.0e-6,1.0e-5);
95 }
96
97 public void testNormOpt() {
98 // norm penalty should put max at 0 (and max value should be 0)

Callers

nothing calls this directly

Calls 1

testGradAndHessianMethod · 0.95

Tested by

no test coverage detected