Package org.apache.spark.ml.tree
Interface HasVarianceImpurity
- All Superinterfaces:
- Identifiable,- Params,- Serializable
- All Known Subinterfaces:
- DecisionTreeRegressorParams,- GBTClassifierParams,- GBTRegressorParams,- RandomForestRegressorParams,- TreeRegressorParams
- All Known Implementing Classes:
- DecisionTreeRegressionModel,- DecisionTreeRegressor,- GBTClassificationModel,- GBTClassifier,- GBTRegressionModel,- GBTRegressor,- RandomForestRegressionModel,- RandomForestRegressor
- 
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 DecisionTreeRegressor, RandomForestRegressor, GBTRegressor and GBTClassifier (since GBTClassificationModel is internally composed of DecisionTreeRegressionModels). Supported: "variance". (default = variance)- Returns:
- (undocumented)
 
- 
getImpurityString getImpurity()
- 
getOldImpurityImpurity getOldImpurity()Convert new impurity to old impurity.
 
-