public class SVMLinearBinaryClassificationModel extends Object implements Model<Vector,Double>, Exportable<SVMLinearBinaryClassificationModel>, Serializable
Constructor and Description |
---|
SVMLinearBinaryClassificationModel(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<SVMLinearBinaryClassificationModel,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.
|
SVMLinearBinaryClassificationModel |
withIntercept(double intercept)
Set up the intercept.
|
SVMLinearBinaryClassificationModel |
withRawLabels(boolean isKeepingRawLabels)
Set up the output label format.
|
SVMLinearBinaryClassificationModel |
withThreshold(double threshold)
Set up the threshold.
|
SVMLinearBinaryClassificationModel |
withWeights(Vector weights)
Set up the weights.
|
public SVMLinearBinaryClassificationModel(Vector weights, double intercept)
public SVMLinearBinaryClassificationModel withRawLabels(boolean isKeepingRawLabels)
isKeepingRawLabels
- The parameter value.public SVMLinearBinaryClassificationModel withThreshold(double threshold)
threshold
- The parameter value.public SVMLinearBinaryClassificationModel withWeights(Vector weights)
weights
- The parameter value.public SVMLinearBinaryClassificationModel withIntercept(double intercept)
intercept
- The parameter value.public boolean isKeepingRawLabels()
public double threshold()
public Vector weights()
public double intercept()
public <P> void saveModel(Exporter<SVMLinearBinaryClassificationModel,P> exporter, P path)
saveModel
in interface Exportable<SVMLinearBinaryClassificationModel>
exporter
- Exporter.path
- Path to saved model.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019