public class DecisionTreeRegressor extends Predictor<Vector,DecisionTreeRegressor,DecisionTreeRegressionModel> implements DecisionTreeRegressorParams, DefaultParamsWritable
| 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.
|
static DecisionTreeRegressor |
load(String path) |
static MLReader<T> |
read() |
DecisionTreeRegressor |
setCacheNodeIds(boolean value) |
DecisionTreeRegressor |
setCheckpointInterval(int value)
Specifies how often to checkpoint the cached node IDs.
|
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) |
DecisionTreeRegressor |
setVarianceCol(String value) |
static String[] |
supportedImpurities()
Accessor for supported impurities: variance
|
String |
uid()
An immutable unique ID for the object and its derivatives.
|
fit, setFeaturesCol, setLabelCol, setPredictionCol, transformSchemaequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateAndTransformSchemacacheNodeIds, getCacheNodeIds, getMaxBins, getMaxDepth, getMaxMemoryInMB, getMinInfoGain, getMinInstancesPerNode, getOldStrategy, maxBins, maxDepth, maxMemoryInMB, minInfoGain, minInstancesPerNodegetLabelCol, labelColfeaturesCol, getFeaturesColgetPredictionCol, predictionColclear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, shouldOwntoStringcheckpointInterval, getCheckpointIntervalgetImpurity, getOldImpurity, impuritygetVarianceCol, varianceColwritesaveinitializeLogging, initializeLogIfNecessary, initializeLogIfNecessary, 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 static DecisionTreeRegressor load(String path)
public static MLReader<T> read()
public String uid()
Identifiableuid in interface Identifiablepublic DecisionTreeRegressor setMaxDepth(int value)
setMaxDepth in interface DecisionTreeParamsvalue - (undocumented)public DecisionTreeRegressor setMaxBins(int value)
setMaxBins in interface DecisionTreeParamsvalue - (undocumented)public DecisionTreeRegressor setMinInstancesPerNode(int value)
setMinInstancesPerNode in interface DecisionTreeParamsvalue - (undocumented)public DecisionTreeRegressor setMinInfoGain(double value)
setMinInfoGain in interface DecisionTreeParamsvalue - (undocumented)public DecisionTreeRegressor setMaxMemoryInMB(int value)
setMaxMemoryInMB in interface DecisionTreeParamsvalue - (undocumented)public DecisionTreeRegressor setCacheNodeIds(boolean value)
setCacheNodeIds in interface DecisionTreeParamsvalue - (undocumented)public DecisionTreeRegressor setCheckpointInterval(int value)
SparkContext.
Must be at least 1.
(default = 10)setCheckpointInterval in interface DecisionTreeParamsvalue - (undocumented)public DecisionTreeRegressor setImpurity(String value)
setImpurity in interface TreeRegressorParamsvalue - (undocumented)public DecisionTreeRegressor setSeed(long value)
setSeed in interface DecisionTreeParamsvalue - (undocumented)public DecisionTreeRegressor setVarianceCol(String value)
public DecisionTreeRegressor copy(ParamMap extra)
ParamsdefaultCopy().copy in interface Paramscopy in class Predictor<Vector,DecisionTreeRegressor,DecisionTreeRegressionModel>extra - (undocumented)