public class LogisticRegression extends ProbabilisticClassifier<Vector,LogisticRegression,LogisticRegressionModel> implements LogisticRegressionParams
Logistic regression. Currently, this class only supports binary classification.
Constructor and Description |
---|
LogisticRegression() |
Modifier and Type | Method and Description |
---|---|
LogisticRegression |
setMaxIter(int value) |
LogisticRegression |
setRegParam(double value) |
LogisticRegression |
setThreshold(double value) |
setProbabilityCol
setRawPredictionCol
fit, setFeaturesCol, setLabelCol, setPredictionCol, transformSchema
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validateAndTransformSchema
getLabelCol, labelCol
featuresCol, getFeaturesCol
getPredictionCol, predictionCol
addOutputColumn, checkInputColumn, explainParams, get, getParam, isSet, paramMap, params, set, set, validate, validate
uid
getRawPredictionCol, rawPredictionCol
getProbabilityCol, probabilityCol
getRegParam, regParam
getMaxIter, maxIter
getThreshold, threshold
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public LogisticRegression setRegParam(double value)
public LogisticRegression setMaxIter(int value)
public LogisticRegression setThreshold(double value)