Package org.apache.spark.ml.tree
Interface DecisionTreeRegressorParams
- All Superinterfaces:
DecisionTreeParams,HasCheckpointInterval,HasFeaturesCol,HasLabelCol,HasPredictionCol,HasSeed,HasVarianceCol,HasVarianceImpurity,HasWeightCol,Identifiable,Params,PredictorParams,Serializable,TreeRegressorParams
- All Known Implementing Classes:
DecisionTreeRegressionModel,DecisionTreeRegressor
public interface DecisionTreeRegressorParams
extends DecisionTreeParams, TreeRegressorParams, HasVarianceCol
-
Method Summary
Modifier and TypeMethodDescriptionvalidateAndTransformSchema(StructType schema, boolean fitting, DataType featuresDataType) Validates and transforms the input schema with the provided param map.Methods inherited from interface org.apache.spark.ml.tree.DecisionTreeParams
cacheNodeIds, getCacheNodeIds, getLeafCol, getMaxBins, getMaxDepth, getMaxMemoryInMB, getMinInfoGain, getMinInstancesPerNode, getMinWeightFractionPerNode, getOldStrategy, leafCol, maxBins, maxDepth, maxMemoryInMB, minInfoGain, minInstancesPerNode, minWeightFractionPerNode, setLeafColMethods inherited from interface org.apache.spark.ml.param.shared.HasCheckpointInterval
checkpointInterval, getCheckpointIntervalMethods inherited from interface org.apache.spark.ml.param.shared.HasFeaturesCol
featuresCol, getFeaturesColMethods inherited from interface org.apache.spark.ml.param.shared.HasLabelCol
getLabelCol, labelColMethods inherited from interface org.apache.spark.ml.param.shared.HasPredictionCol
getPredictionCol, predictionColMethods inherited from interface org.apache.spark.ml.param.shared.HasVarianceCol
getVarianceCol, varianceColMethods inherited from interface org.apache.spark.ml.tree.HasVarianceImpurity
getImpurity, getOldImpurity, impurityMethods inherited from interface org.apache.spark.ml.param.shared.HasWeightCol
getWeightCol, weightColMethods inherited from interface org.apache.spark.ml.util.Identifiable
toString, uidMethods inherited from interface org.apache.spark.ml.param.Params
clear, copy, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
-
Method Details
-
validateAndTransformSchema
StructType validateAndTransformSchema(StructType schema, boolean fitting, DataType featuresDataType) Description copied from interface:PredictorParamsValidates and transforms the input schema with the provided param map.- Specified by:
validateAndTransformSchemain interfacePredictorParams- Parameters:
schema- input schemafitting- whether this is in fittingfeaturesDataType- SQL DataType for FeaturesType. E.g.,VectorUDTfor vector features.- Returns:
- output schema
-