public interface DecisionTreeParams extends PredictorParams, HasCheckpointInterval, HasSeed
Note: Marked as private and DeveloperApi since this may be made public in the future.
| Modifier and Type | Method and Description |
|---|---|
BooleanParam |
cacheNodeIds()
If false, the algorithm will pass trees to executors to match instances with nodes.
|
boolean |
getCacheNodeIds() |
int |
getMaxBins() |
int |
getMaxDepth() |
int |
getMaxMemoryInMB() |
double |
getMinInfoGain() |
int |
getMinInstancesPerNode() |
Strategy |
getOldStrategy(scala.collection.immutable.Map<Object,Object> categoricalFeatures,
int numClasses,
scala.Enumeration.Value oldAlgo,
Impurity oldImpurity,
double subsamplingRate)
(private[ml]) Create a Strategy instance to use with the old API.
|
IntParam |
maxBins()
Maximum number of bins used for discretizing continuous features and for choosing how to split
on features at each node.
|
IntParam |
maxDepth()
Maximum depth of the tree (nonnegative).
|
IntParam |
maxMemoryInMB()
Maximum memory in MB allocated to histogram aggregation.
|
DoubleParam |
minInfoGain()
Minimum information gain for a split to be considered at a tree node.
|
IntParam |
minInstancesPerNode()
Minimum number of instances each child must have after split.
|
DecisionTreeParams |
setCacheNodeIds(boolean value)
Deprecated.
This method is deprecated and will be removed in 3.0.0.
|
DecisionTreeParams |
setCheckpointInterval(int value)
Deprecated.
This method is deprecated and will be removed in 3.0.0.
|
DecisionTreeParams |
setMaxBins(int value)
Deprecated.
This method is deprecated and will be removed in 3.0.0.
|
DecisionTreeParams |
setMaxDepth(int value)
Deprecated.
This method is deprecated and will be removed in 3.0.0.
|
DecisionTreeParams |
setMaxMemoryInMB(int value)
Deprecated.
This method is deprecated and will be removed in 3.0.0.
|
DecisionTreeParams |
setMinInfoGain(double value)
Deprecated.
This method is deprecated and will be removed in 3.0.0.
|
DecisionTreeParams |
setMinInstancesPerNode(int value)
Deprecated.
This method is deprecated and will be removed in 3.0.0.
|
DecisionTreeParams |
setSeed(long value)
Deprecated.
This method is deprecated and will be removed in 3.0.0.
|
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, getCheckpointIntervalBooleanParam cacheNodeIds()
boolean getCacheNodeIds()
int getMaxBins()
int getMaxDepth()
int getMaxMemoryInMB()
double getMinInfoGain()
int getMinInstancesPerNode()
Strategy getOldStrategy(scala.collection.immutable.Map<Object,Object> categoricalFeatures, int numClasses, scala.Enumeration.Value oldAlgo, Impurity oldImpurity, double subsamplingRate)
IntParam maxBins()
IntParam maxDepth()
IntParam maxMemoryInMB()
DoubleParam minInfoGain()
IntParam minInstancesPerNode()
DecisionTreeParams setCacheNodeIds(boolean value)
value - (undocumented)DecisionTreeParams setCheckpointInterval(int value)
value - (undocumented)DecisionTreeParams setMaxBins(int value)
value - (undocumented)DecisionTreeParams setMaxDepth(int value)
value - (undocumented)DecisionTreeParams setMaxMemoryInMB(int value)
value - (undocumented)DecisionTreeParams setMinInfoGain(double value)
value - (undocumented)DecisionTreeParams setMinInstancesPerNode(int value)
value - (undocumented)DecisionTreeParams setSeed(long value)
value - (undocumented)