public class LogisticRegressionModel extends Object implements Model<Vector,Double>, Exportable<LogisticRegressionModel>, Serializable
Constructor and Description |
---|
LogisticRegressionModel(Vector weights,
double intercept) |
Modifier and Type | Method and Description |
---|---|
Double |
apply(Vector input) |
boolean |
equals(Object o) |
int |
hashCode() |
double |
intercept()
Gets the intercept.
|
boolean |
isKeepingRawLabels()
Gets the output label format mode.
|
<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.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019