public abstract class GeneralizedLinearAlgorithm<M extends GeneralizedLinearModel> extends Object implements Logging, scala.Serializable
Constructor and Description |
---|
GeneralizedLinearAlgorithm() |
Modifier and Type | Method and Description |
---|---|
abstract Optimizer |
optimizer()
The optimizer to solve the problem.
|
M |
run(RDD<LabeledPoint> input)
Run the algorithm with the configured parameters on an input
RDD of LabeledPoint entries.
|
M |
run(RDD<LabeledPoint> input,
Vector initialWeights)
Run the algorithm with the configured parameters on an input RDD
of LabeledPoint entries starting from the initial weights provided.
|
GeneralizedLinearAlgorithm<M> |
setFeatureScaling(boolean useFeatureScaling)
Set if the algorithm should use feature scaling to improve the convergence during optimization.
|
GeneralizedLinearAlgorithm<M> |
setIntercept(boolean addIntercept)
Set if the algorithm should add an intercept.
|
GeneralizedLinearAlgorithm<M> |
setValidateData(boolean validateData)
Set if the algorithm should validate data before training.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public abstract Optimizer optimizer()
public GeneralizedLinearAlgorithm<M> setFeatureScaling(boolean useFeatureScaling)
public GeneralizedLinearAlgorithm<M> setIntercept(boolean addIntercept)
public GeneralizedLinearAlgorithm<M> setValidateData(boolean validateData)
public M run(RDD<LabeledPoint> input)
public M run(RDD<LabeledPoint> input, Vector initialWeights)