public static class LogisticRegression.Builder extends BasePythonClassifier.Builder<LogisticRegression.Builder,LogisticRegression>
modelName, workingDir| Constructor and Description |
|---|
Builder()
Instantiates a new Builder.
|
| Modifier and Type | Method and Description |
|---|---|
protected LogisticRegression |
buildModel()
Build classifier.
|
LogisticRegression.Builder |
classWeight(ClassWeightType classWeight)
Sets class weight.
|
protected com.workfusion.automl.ml.bridge.python.classifier.PythonClassifierBridge |
createDefaultClassifierBridge()
Create default python classifier bridge.
|
LogisticRegression.Builder |
dual(boolean dual)
Sets the algorithm to either solve the dual or primal optimization problem.
|
LogisticRegression.Builder |
fitIntercept(boolean fitIntercept)
Sets whether to calculate the intercept for this model.
|
LogisticRegression.Builder |
interceptScaling(double interceptScaling)
Sets the scaling coefficient of the synthetic features.
|
LogisticRegression.Builder |
jobs(int jobs)
Sets the number of jobs to run in parallel for both fit and predict.
|
LogisticRegression.Builder |
maxIterations(int maxIterations)
Sets the maximum number of iterations to be run.
|
LogisticRegression.Builder |
modelName(String name)
Set a model name.
|
LogisticRegression.Builder |
multiClass(MultiClassType multiClass)
Sets the multi-class strategy if y contains more than two classes.
|
LogisticRegression.Builder |
penalty(PenaltyType penalty)
Sets the norm used in the penalization.
|
LogisticRegression.Builder |
penaltyCoefficient(double penaltyCoefficient)
Sets penalty coefficient of the error term.
|
LogisticRegression.Builder |
seed(Integer seed)
Sets the seed used by the random number generator.
|
LogisticRegression.Builder |
solver(SolverType solver)
Sets the algorithm to use in the optimization problem.
|
LogisticRegression.Builder |
tolerance(double tolerance)
Sets the tolerance for stopping criteria.
|
LogisticRegression.Builder |
verbose(boolean verbose)
Sets whether verbose mode is used.
|
LogisticRegression.Builder |
warmStart(boolean warmStart)
Sets whether warm start is used.
|
build, workingDirprotected com.workfusion.automl.ml.bridge.python.classifier.PythonClassifierBridge createDefaultClassifierBridge()
BasePythonClassifier.BuildercreateDefaultClassifierBridge in class BasePythonClassifier.Builder<LogisticRegression.Builder,LogisticRegression>public LogisticRegression.Builder penalty(PenaltyType penalty)
penalty - the penalty (PenaltyType) (default: PenaltyType.L2)public LogisticRegression.Builder dual(boolean dual)
dual - the dual flag (default: true)public LogisticRegression.Builder tolerance(double tolerance)
tolerance - the tolerance (default: 1e-4)public LogisticRegression.Builder penaltyCoefficient(double penaltyCoefficient)
penaltyCoefficient - the penalty coefficient (default: 1.0)public LogisticRegression.Builder fitIntercept(boolean fitIntercept)
fitIntercept - the fit intercept flag (default: true)public LogisticRegression.Builder interceptScaling(double interceptScaling)
interceptScaling - the scaling coefficient (default: 1.0)public LogisticRegression.Builder classWeight(ClassWeightType classWeight)
classWeight - the class weight (ClassWeightType) (default: null)public LogisticRegression.Builder seed(Integer seed)
seed - the seed (default: null)public LogisticRegression.Builder solver(SolverType solver)
solver - the solver (SolverType) (default:SolverType.LIBLINEAR)public LogisticRegression.Builder maxIterations(int maxIterations)
maxIterations - the number of iterations (default: 100)public LogisticRegression.Builder multiClass(MultiClassType multiClass)
multiClass - the multi class strategy (MultiClassType) (default: MultiClassType.OVR)public LogisticRegression.Builder verbose(boolean verbose)
verbose - the verbose mode flag (default: false)public LogisticRegression.Builder warmStart(boolean warmStart)
warmStart - the warm start flag (default: false)public LogisticRegression.Builder jobs(int jobs)
jobs - the number of jobs (default: 1)public LogisticRegression.Builder modelName(String name)
BasePythonClassifier.BuildermodelName in class BasePythonClassifier.Builder<LogisticRegression.Builder,LogisticRegression>name - the model name (String)protected LogisticRegression buildModel()
BasePythonClassifier.BuilderbuildModel in class BasePythonClassifier.Builder<LogisticRegression.Builder,LogisticRegression>Copyright © 2019. All rights reserved.