public interface DecisionTreeParams extends PredictorParams, HasCheckpointInterval, HasSeed, HasWeightCol
Note: Marked as private 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() |
String |
getLeafCol() |
int |
getMaxBins() |
int |
getMaxDepth() |
int |
getMaxMemoryInMB() |
double |
getMinInfoGain() |
int |
getMinInstancesPerNode() |
double |
getMinWeightFractionPerNode() |
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.
|
Param<String> |
leafCol()
Leaf indices column name.
|
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.
|
DoubleParam |
minWeightFractionPerNode()
Minimum fraction of the weighted sample count that each child must have after split.
|
DecisionTreeParams |
setLeafCol(String value) |
extractInstances, extractInstances, validateAndTransformSchema
getLabelCol, labelCol
featuresCol, getFeaturesCol
getPredictionCol, predictionCol
clear, copy, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
toString, uid
checkpointInterval, getCheckpointInterval
getWeightCol, weightCol
BooleanParam cacheNodeIds()
boolean getCacheNodeIds()
String getLeafCol()
int getMaxBins()
int getMaxDepth()
int getMaxMemoryInMB()
double getMinInfoGain()
int getMinInstancesPerNode()
double getMinWeightFractionPerNode()
Strategy getOldStrategy(scala.collection.immutable.Map<Object,Object> categoricalFeatures, int numClasses, scala.Enumeration.Value oldAlgo, Impurity oldImpurity, double subsamplingRate)
Param<String> leafCol()
IntParam maxBins()
IntParam maxDepth()
IntParam maxMemoryInMB()
DoubleParam minInfoGain()
IntParam minInstancesPerNode()
DoubleParam minWeightFractionPerNode()
DecisionTreeParams setLeafCol(String value)