public interface RandomForestParams extends TreeEnsembleParams
| Modifier and Type | Method and Description |
|---|---|
BooleanParam |
bootstrap()
Whether bootstrap samples are used when building trees.
|
boolean |
getBootstrap() |
int |
getNumTrees() |
IntParam |
numTrees()
Number of trees to train (at least 1).
|
featureSubsetStrategy, getFeatureSubsetStrategy, getOldStrategy, getSubsamplingRate, subsamplingRatecacheNodeIds, getCacheNodeIds, getLeafCol, getMaxBins, getMaxDepth, getMaxMemoryInMB, getMinInfoGain, getMinInstancesPerNode, getMinWeightFractionPerNode, getOldStrategy, leafCol, maxBins, maxDepth, maxMemoryInMB, minInfoGain, minInstancesPerNode, minWeightFractionPerNode, setLeafColextractInstances, extractInstances, validateAndTransformSchemagetLabelCol, labelColfeaturesCol, getFeaturesColgetPredictionCol, predictionColclear, copy, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, shouldOwntoString, uidcheckpointInterval, getCheckpointIntervalgetWeightCol, weightColBooleanParam bootstrap()
boolean getBootstrap()
int getNumTrees()
IntParam numTrees()
Note: The reason that we cannot add this to both GBT and RF (i.e. in TreeEnsembleParams)
is the param maxIter controls how many trees a GBT has. The semantics in the algorithms
are a bit different.