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

Method setLambda

JSAT/src/jsat/classifiers/linear/SDCA.java:172–178  ·  view source on GitHub ↗

Sets the regularization term, where larger values indicate a larger regularization penalty. @param lambda the positive regularization term

(double lambda)

Source from the content-addressed store, hash-verified

170 * @param lambda the positive regularization term
171 */
172 @Parameter.WarmParameter(prefLowToHigh = false)
173 public void setLambda(double lambda)
174 {
175 if(lambda <= 0 || Double.isInfinite(lambda) || Double.isNaN(lambda))
176 throw new IllegalArgumentException("Regularization term lambda must be a positive value, not " + lambda);
177 this.lambda = lambda;
178 }
179
180 /**
181 *

Callers 9

testScaleMethod · 0.95
testSetCMethod · 0.95
testWarmOtherMethod · 0.95
SDCAMethod · 0.95
SMIDASMethod · 0.45
LinearL1SCDMethod · 0.45

Calls

no outgoing calls

Tested by 6

testScaleMethod · 0.76
testSetCMethod · 0.76
testWarmOtherMethod · 0.76