public class LinearRegressionModel extends Object implements Model<Vector,Double>, Exportable<LinearRegressionModel>, Serializable
Constructor and Description |
---|
LinearRegressionModel(Vector weights,
double intercept) |
Modifier and Type | Method and Description |
---|---|
Double |
apply(Vector input) |
boolean |
equals(Object o) |
double |
getIntercept() |
Vector |
getWeights() |
int |
hashCode() |
<P> void |
saveModel(Exporter<LinearRegressionModel,P> exporter,
P path)
Save model by the given path.
|
String |
toString() |
String |
toString(boolean pretty) |
public LinearRegressionModel(Vector weights, double intercept)
public Vector getWeights()
public double getIntercept()
public <P> void saveModel(Exporter<LinearRegressionModel,P> exporter, P path)
saveModel
in interface Exportable<LinearRegressionModel>
exporter
- Exporter.path
- Path to saved model.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019