MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / gradConvgHelper

Method gradConvgHelper

JSAT/src/jsat/math/optimization/BFGS.java:162–170  ·  view source on GitHub ↗
(Vec grad)

Source from the content-addressed store, hash-verified

160 }
161
162 private double gradConvgHelper(Vec grad)
163 {
164 if(!inftNormCriterion)
165 return grad.pNorm(2);
166 double max = 0;
167 for(IndexValue iv : grad)
168 max = Math.max(max, Math.abs(iv.getValue()));
169 return max;
170 }
171
172 @Override
173 public void setMaximumIterations(int iterations)

Callers 1

optimizeMethod · 0.95

Calls 3

pNormMethod · 0.45
maxMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected