public final class LinearRegressionModel extends Object implements IgniteModel<Vector,Double>, Exportable<LinearRegressionModel>, Serializable
Constructor and Description |
---|
LinearRegressionModel(Vector weights,
double intercept) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
double |
getIntercept() |
Vector |
getWeights() |
int |
hashCode() |
Double |
predict(Vector input)
Make a prediction for the specified input arguments.
|
<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.public String toString(boolean pretty)
toString
in interface IgniteModel<Vector,Double>
pretty
- Use pretty mode.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024