Sets the regularization term, where larger values indicate a larger regularization penalty. @param lambda the positive regularization term
(double lambda)
| 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 | * |
no outgoing calls