Package org.apache.spark.ml.tree
Interface TreeClassifierParams
- All Superinterfaces:
- Identifiable,- Params,- Serializable
- All Known Subinterfaces:
- DecisionTreeClassifierParams,- RandomForestClassifierParams
- All Known Implementing Classes:
- DecisionTreeClassificationModel,- DecisionTreeClassifier,- RandomForestClassificationModel,- RandomForestClassifier
Parameters for Decision Tree-based classification algorithms.
- 
Method SummaryModifier and TypeMethodDescriptionConvert new impurity to old impurity.impurity()Criterion used for information gain calculation (case-insensitive).Methods inherited from interface org.apache.spark.ml.util.IdentifiabletoString, uidMethods inherited from interface org.apache.spark.ml.param.Paramsclear, copy, copyValues, defaultCopy, defaultParamMap, estimateMatadataSize, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
- 
Method Details- 
impurityCriterion used for information gain calculation (case-insensitive). This impurity type is used in DecisionTreeClassifier and RandomForestClassifier, Supported: "entropy" and "gini". (default = gini)- Returns:
- (undocumented)
 
- 
getImpurityString getImpurity()
- 
getOldImpurityImpurity getOldImpurity()Convert new impurity to old impurity.
 
-