public final class LogisticRegressionModel extends Object implements IgniteModel<Vector,Double>, Exportable<LogisticRegressionModel>, Serializable
| Constructor and Description |
|---|
LogisticRegressionModel(Vector weights,
double intercept) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
double |
intercept()
Gets the intercept.
|
boolean |
isKeepingRawLabels()
Gets the output label format mode.
|
Double |
predict(Vector input)
Make a prediction for the specified input arguments.
|
<P> void |
saveModel(Exporter<LogisticRegressionModel,P> exporter,
P path)
Save model by the given path.
|
double |
threshold()
Gets the threshold.
|
String |
toString() |
String |
toString(boolean pretty) |
Vector |
weights()
Gets the weights.
|
LogisticRegressionModel |
withIntercept(double intercept)
Set up the intercept.
|
LogisticRegressionModel |
withRawLabels(boolean isKeepingRawLabels)
Set up the output label format.
|
LogisticRegressionModel |
withThreshold(double threshold)
Set up the threshold.
|
LogisticRegressionModel |
withWeights(Vector weights)
Set up the weights.
|
public LogisticRegressionModel(Vector weights, double intercept)
public LogisticRegressionModel withRawLabels(boolean isKeepingRawLabels)
isKeepingRawLabels - The parameter value.public LogisticRegressionModel withThreshold(double threshold)
threshold - The parameter value.public LogisticRegressionModel withWeights(Vector weights)
weights - The parameter value.public LogisticRegressionModel withIntercept(double intercept)
intercept - The parameter value.public boolean isKeepingRawLabels()
public double threshold()
public Vector weights()
public double intercept()
public <P> void saveModel(Exporter<LogisticRegressionModel,P> exporter, P path)
saveModel in interface Exportable<LogisticRegressionModel>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.26 Release Date : October 16 2025