public class LogisticRegressionModel extends GeneralizedLinearModel implements ClassificationModel, scala.Serializable
| Constructor and Description |
|---|
LogisticRegressionModel(Vector weights,
double intercept) |
| Modifier and Type | Method and Description |
|---|---|
LogisticRegressionModel |
clearThreshold()
:: Experimental ::
Clears the threshold so that
predict will output raw prediction scores. |
double |
intercept() |
LogisticRegressionModel |
setThreshold(double threshold)
:: Experimental ::
Sets the threshold that separates positive predictions from negative predictions.
|
Vector |
weights() |
predict, predict, toStringpredict, predict, predictpublic LogisticRegressionModel(Vector weights, double intercept)
public Vector weights()
weights in class GeneralizedLinearModelpublic double intercept()
intercept in class GeneralizedLinearModelpublic LogisticRegressionModel setThreshold(double threshold)
public LogisticRegressionModel clearThreshold()
predict will output raw prediction scores.