public final class SVMLinearClassificationModel extends Object implements IgniteModel<Vector,Double>, Exportable<SVMLinearClassificationModel>, Serializable
Constructor and Description |
---|
SVMLinearClassificationModel(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<SVMLinearClassificationModel,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.
|
SVMLinearClassificationModel |
withIntercept(double intercept)
Set up the intercept.
|
SVMLinearClassificationModel |
withRawLabels(boolean isKeepingRawLabels)
Set up the output label format.
|
SVMLinearClassificationModel |
withThreshold(double threshold)
Set up the threshold.
|
SVMLinearClassificationModel |
withWeights(Vector weights)
Set up the weights.
|
public SVMLinearClassificationModel(Vector weights, double intercept)
public SVMLinearClassificationModel withRawLabels(boolean isKeepingRawLabels)
isKeepingRawLabels
- The parameter value.public SVMLinearClassificationModel withThreshold(double threshold)
threshold
- The parameter value.public SVMLinearClassificationModel withWeights(Vector weights)
weights
- The parameter value.public SVMLinearClassificationModel withIntercept(double intercept)
intercept
- The parameter value.public boolean isKeepingRawLabels()
public double threshold()
public Vector weights()
public double intercept()
public <P> void saveModel(Exporter<SVMLinearClassificationModel,P> exporter, P path)
saveModel
in interface Exportable<SVMLinearClassificationModel>
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.14 Release Date : November 5 2024