public static class RandomForestClassifier.Builder extends BasePythonClassifier.Builder<RandomForestClassifier.Builder,RandomForestClassifier>
modelName, workingDir| Constructor and Description |
|---|
Builder()
Instantiates a new Builder.
|
| Modifier and Type | Method and Description |
|---|---|
RandomForestClassifier.Builder |
bootstrap(boolean bootstrap)
Sets whether bootstrap samples are used when building trees.
|
protected RandomForestClassifier |
buildModel()
Build classifier.
|
RandomForestClassifier.Builder |
classWeight(ClassWeightType classWeight)
Sets class weight.
|
protected com.workfusion.automl.ml.bridge.python.classifier.PythonClassifierBridge |
createDefaultClassifierBridge()
Create default python classifier bridge.
|
RandomForestClassifier.Builder |
criterion(CriterionType criterion)
Sets the function to measure the quality of a split.
|
RandomForestClassifier.Builder |
estimators(int estimators)
Sets the number of estimators(trees) in the forest.
|
RandomForestClassifier.Builder |
jobs(int jobs)
Sets the number of jobs to run in parallel for both fit and predict.
|
RandomForestClassifier.Builder |
maxDepth(Integer maxDepth)
Sets the maximum depth of the tree.
|
RandomForestClassifier.Builder |
maxFeatures(double maxFeatures)
Sets the fraction of features to consider when looking for the best split.
|
RandomForestClassifier.Builder |
maxFeatures(int maxFeatures)
Sets the maximum number of features to consider when looking for the best split.
|
RandomForestClassifier.Builder |
maxFeatures(MaxFeaturesType maxFeatures)
Sets the maximum number of features to consider when looking for the best split.
|
RandomForestClassifier.Builder |
maxLeafNodes(Integer maxLeafNodes)
Sets max leaf nodes.
|
RandomForestClassifier.Builder |
minImpurityDecrease(double minImpurityDecrease)
Sets min impurity decrease.
|
RandomForestClassifier.Builder |
minSamplesLeaf(double minSamplesLeaf)
Sets the minimum number of samples required to be at a leaf node (the fraction of the samples).
|
RandomForestClassifier.Builder |
minSamplesLeaf(int minSamplesLeaf)
Sets the minimum number of samples required to be at a leaf node.
|
RandomForestClassifier.Builder |
minSamplesSplit(double minSamplesSplit)
Sets the minimum number of samples required to split an internal node (the fraction of the samples).
|
RandomForestClassifier.Builder |
minSamplesSplit(int minSamplesSplit)
Sets the minimum number of samples required to split an internal node.
|
RandomForestClassifier.Builder |
minWeightFractionLeaf(double minWeightFractionLeaf)
Sets the minimum weighted fraction of the sum total of weights (of all the input samples) required to be at a leaf node.
|
RandomForestClassifier.Builder |
modelName(String name)
Set a model name.
|
RandomForestClassifier.Builder |
oobScore(boolean oobScore)
Sets whether to use out-of-bag samples to estimate the generalization accuracy.
|
RandomForestClassifier.Builder |
seed(Integer seed)
Sets the seed used by the random number generator.
|
RandomForestClassifier.Builder |
verbose(boolean verbose)
Sets whether warm start is used.
|
RandomForestClassifier.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<RandomForestClassifier.Builder,RandomForestClassifier>public RandomForestClassifier.Builder estimators(int estimators)
estimators - the number of estimators (default: 10)public RandomForestClassifier.Builder criterion(CriterionType criterion)
criterion - the criterion (CriterionType) (default: CriterionType.GINI)public RandomForestClassifier.Builder maxFeatures(MaxFeaturesType maxFeatures)
maxFeatures - the max features (MaxFeaturesType) (default: MaxFeaturesType.AUTO)public RandomForestClassifier.Builder maxFeatures(int maxFeatures)
maxFeatures - the max featurespublic RandomForestClassifier.Builder maxFeatures(double maxFeatures)
maxFeatures - the max featurespublic RandomForestClassifier.Builder maxDepth(Integer maxDepth)
maxDepth - the max depth (default: null)public RandomForestClassifier.Builder minSamplesSplit(double minSamplesSplit)
minSamplesSplit - the min samples splitpublic RandomForestClassifier.Builder minSamplesSplit(int minSamplesSplit)
minSamplesSplit - the min samples split (default: 2)public RandomForestClassifier.Builder minSamplesLeaf(int minSamplesLeaf)
minSamplesLeaf - the min samples leaf (default: 1)public RandomForestClassifier.Builder minSamplesLeaf(double minSamplesLeaf)
minSamplesLeaf - the min samples leafpublic RandomForestClassifier.Builder minWeightFractionLeaf(double minWeightFractionLeaf)
minWeightFractionLeaf - the min weight fraction leaf (default: 0.0)public RandomForestClassifier.Builder maxLeafNodes(Integer maxLeafNodes)
maxLeafNodes - the max leaf nodes (default: null)public RandomForestClassifier.Builder minImpurityDecrease(double minImpurityDecrease)
minImpurityDecrease - the min impurity decrease (default: 0.0)public RandomForestClassifier.Builder bootstrap(boolean bootstrap)
bootstrap - the bootstrap (default: true)public RandomForestClassifier.Builder oobScore(boolean oobScore)
oobScore - the oob score (default: false)public RandomForestClassifier.Builder jobs(int jobs)
jobs - the number of jobs (default: 1)public RandomForestClassifier.Builder seed(Integer seed)
seed - the seed (default: null)public RandomForestClassifier.Builder verbose(boolean verbose)
verbose - the verbose mode (default: false)public RandomForestClassifier.Builder warmStart(boolean warmStart)
warmStart - the warm start (default: false)public RandomForestClassifier.Builder classWeight(ClassWeightType classWeight)
classWeight - the class weight (ClassWeightType) (default: null)public RandomForestClassifier.Builder modelName(String name)
BasePythonClassifier.BuildermodelName in class BasePythonClassifier.Builder<RandomForestClassifier.Builder,RandomForestClassifier>name - the model name (String)protected RandomForestClassifier buildModel()
BasePythonClassifier.BuilderbuildModel in class BasePythonClassifier.Builder<RandomForestClassifier.Builder,RandomForestClassifier>Copyright © 2019. All rights reserved.