public final class DecisionTreeRegressor extends Predictor<Vector,DecisionTreeRegressor,DecisionTreeRegressionModel>
Decision tree learning algorithm
for regression.
It supports both continuous and categorical features.| Constructor and Description |
|---|
DecisionTreeRegressor() |
DecisionTreeRegressor(String uid) |
| Modifier and Type | Method and Description |
|---|---|
DecisionTreeRegressor |
copy(ParamMap extra)
Creates a copy of this instance with the same UID and some extra params.
|
Param<String> |
featuresCol()
Param for features column name.
|
String |
getFeaturesCol() |
String |
getLabelCol() |
String |
getPredictionCol() |
Param<String> |
labelCol()
Param for label column name.
|
Param<String> |
predictionCol()
Param for prediction column name.
|
DecisionTreeRegressor |
setCacheNodeIds(boolean value) |
DecisionTreeRegressor |
setCheckpointInterval(int value) |
DecisionTreeRegressor |
setImpurity(String value) |
DecisionTreeRegressor |
setMaxBins(int value) |
DecisionTreeRegressor |
setMaxDepth(int value) |
DecisionTreeRegressor |
setMaxMemoryInMB(int value) |
DecisionTreeRegressor |
setMinInfoGain(double value) |
DecisionTreeRegressor |
setMinInstancesPerNode(int value) |
DecisionTreeRegressor |
setSeed(long value) |
static String[] |
supportedImpurities()
Accessor for supported impurities: variance
|
String |
uid()
An immutable unique ID for the object and its derivatives.
|
StructType |
validateAndTransformSchema(StructType schema,
boolean fitting,
DataType featuresDataType)
Validates and transforms the input schema with the provided param map.
|
fit, setFeaturesCol, setLabelCol, setPredictionCol, transformSchemaequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn, validateParamstoStringinitializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningpublic DecisionTreeRegressor(String uid)
public DecisionTreeRegressor()
public static final String[] supportedImpurities()
public String uid()
Identifiablepublic DecisionTreeRegressor setMaxDepth(int value)
public DecisionTreeRegressor setMaxBins(int value)
public DecisionTreeRegressor setMinInstancesPerNode(int value)
public DecisionTreeRegressor setMinInfoGain(double value)
public DecisionTreeRegressor setMaxMemoryInMB(int value)
public DecisionTreeRegressor setCacheNodeIds(boolean value)
public DecisionTreeRegressor setCheckpointInterval(int value)
public DecisionTreeRegressor setImpurity(String value)
public DecisionTreeRegressor setSeed(long value)
public DecisionTreeRegressor copy(ParamMap extra)
Paramscopy in interface Paramscopy in class Predictor<Vector,DecisionTreeRegressor,DecisionTreeRegressionModel>extra - (undocumented)defaultCopy()public StructType validateAndTransformSchema(StructType schema, boolean fitting, DataType featuresDataType)
schema - input schemafitting - whether this is in fittingfeaturesDataType - SQL DataType for FeaturesType.
E.g., VectorUDT for vector features.public Param<String> labelCol()
public String getLabelCol()
public Param<String> featuresCol()
public String getFeaturesCol()
public Param<String> predictionCol()
public String getPredictionCol()