public class LogisticRegressionWithLBFGS extends GeneralizedLinearAlgorithm<LogisticRegressionModel> implements scala.Serializable
Constructor and Description |
---|
LogisticRegressionWithLBFGS() |
Modifier and Type | Method and Description |
---|---|
protected LogisticRegressionModel |
createModel(Vector weights,
double intercept)
Create a model given the weights and intercept
|
LBFGS |
optimizer()
The optimizer to solve the problem.
|
LogisticRegressionWithLBFGS |
setNumClasses(int numClasses)
:: Experimental ::
Set the number of possible outcomes for k classes classification problem in
Multinomial Logistic Regression.
|
protected scala.collection.immutable.List<scala.Function1<RDD<LabeledPoint>,java.lang.Object>> |
validators() |
addIntercept, getNumFeatures, isAddIntercept, numFeatures, numOfLinearPredictor, run, run, setIntercept, setValidateData, validateData
clone, equals, finalize, 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 LBFGS optimizer()
GeneralizedLinearAlgorithm
optimizer
in class GeneralizedLinearAlgorithm<LogisticRegressionModel>
protected scala.collection.immutable.List<scala.Function1<RDD<LabeledPoint>,java.lang.Object>> validators()
validators
in class GeneralizedLinearAlgorithm<LogisticRegressionModel>
public LogisticRegressionWithLBFGS setNumClasses(int numClasses)
numClasses
- (undocumented)protected LogisticRegressionModel createModel(Vector weights, double intercept)
GeneralizedLinearAlgorithm
createModel
in class GeneralizedLinearAlgorithm<LogisticRegressionModel>
weights
- (undocumented)intercept
- (undocumented)