Class LogisticRegressionWithSGD
Object
org.apache.spark.mllib.regression.GeneralizedLinearAlgorithm<LogisticRegressionModel>
org.apache.spark.mllib.classification.LogisticRegressionWithSGD
- All Implemented Interfaces:
- Serializable,- org.apache.spark.internal.Logging
public class LogisticRegressionWithSGD
extends GeneralizedLinearAlgorithm<LogisticRegressionModel>
implements Serializable
Train a classification model for Binary Logistic Regression
 using Stochastic Gradient Descent. By default L2 regularization is used,
 which can be changed via 
LogisticRegressionWithSGD.optimizer.
 
 Using LogisticRegressionWithLBFGS is recommended over this.
 
- See Also:
- Note:
- Labels used in Logistic Regression should be {0, 1, ..., k - 1} for k classes multi-label classification problem.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.spark.internal.Loggingorg.apache.spark.internal.Logging.LogStringContext, org.apache.spark.internal.Logging.SparkShellLoggingFilter
- 
Method SummaryModifier and TypeMethodDescriptionThe optimizer to solve the problem.Methods inherited from class org.apache.spark.mllib.regression.GeneralizedLinearAlgorithmgetNumFeatures, isAddIntercept, run, run, setIntercept, setValidateDataMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.internal.LogginginitializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logBasedOnLevel, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logName, LogStringContext, logTrace, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, logWarning, MDC, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContext
- 
Method Details- 
optimizerDescription copied from class:GeneralizedLinearAlgorithmThe optimizer to solve the problem.- Specified by:
- optimizerin class- GeneralizedLinearAlgorithm<LogisticRegressionModel>
- Returns:
- (undocumented)
 
 
-