Class RidgeRegressionWithSGD
Object
org.apache.spark.mllib.regression.GeneralizedLinearAlgorithm<RidgeRegressionModel>
org.apache.spark.mllib.regression.RidgeRegressionWithSGD
- All Implemented Interfaces:
- Serializable,- org.apache.spark.internal.Logging
public class RidgeRegressionWithSGD
extends GeneralizedLinearAlgorithm<RidgeRegressionModel>
implements Serializable
Train a regression model with L2-regularization using Stochastic Gradient Descent.
 This solves the l2-regularized least squares regression formulation
          f(weights) = 1/2n ||A weights-y||^2^  + regParam/2 ||weights||^2^
 Here the data matrix has n rows, and the input RDD holds the set of rows of A, each with
 its corresponding right hand side label y.
 See also the documentation for the precise formulation.
- See Also:
- 
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, 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<RidgeRegressionModel>
- Returns:
- (undocumented)
 
 
-