public class LinearRegressionModel extends GeneralizedLinearModel implements RegressionModel, scala.Serializable
Constructor and Description |
---|
LinearRegressionModel(Vector weights,
double intercept) |
Modifier and Type | Method and Description |
---|---|
double |
intercept() |
Vector |
weights() |
predict, predict, toString
predict, predict, predict
public LinearRegressionModel(Vector weights, double intercept)
public Vector weights()
weights
in class GeneralizedLinearModel
public double intercept()
intercept
in class GeneralizedLinearModel