public class SVMModel extends GeneralizedLinearModel implements ClassificationModel, scala.Serializable
Constructor and Description |
---|
SVMModel(Vector weights,
double intercept) |
Modifier and Type | Method and Description |
---|---|
SVMModel |
clearThreshold()
:: Experimental ::
Clears the threshold so that
predict will output raw prediction scores. |
double |
intercept() |
SVMModel |
setThreshold(double threshold)
:: Experimental ::
Sets the threshold that separates positive predictions from negative predictions.
|
Vector |
weights() |
predict, predict
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
predict, predict, predict
public SVMModel(Vector weights, double intercept)
public Vector weights()
weights
in class GeneralizedLinearModel
public double intercept()
intercept
in class GeneralizedLinearModel
public SVMModel setThreshold(double threshold)
public SVMModel clearThreshold()
predict
will output raw prediction scores.