public static class LASSO.Trainer extends RegressionTrainer<double[]>
Constructor and Description |
---|
LASSO.Trainer(double lambda)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setMaxNumIteration(int maxIter)
Sets the maximum number of iterations.
|
void |
setTolerance(double tol)
Sets the tolerance for stopping iterations (relative target duality gap).
|
LASSO |
train(double[][] x,
double[] y)
Learns a regression model with given training data.
|
setAttributes
public LASSO.Trainer(double lambda)
lambda
- the number of trees.public void setTolerance(double tol)
tol
- the tolerance for stopping iterations.public void setMaxNumIteration(int maxIter)
maxIter
- the maximum number of iterations.public LASSO train(double[][] x, double[] y)
RegressionTrainer
train
in class RegressionTrainer<double[]>
x
- the training instances.y
- the training response values.Copyright © 2015. All rights reserved.