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, transformSchema
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validateAndTransformSchema
cacheNodeIds, getCacheNodeIds, getMaxBins, getMaxDepth, getMaxMemoryInMB, getMinInfoGain, getMinInstancesPerNode, getOldStrategy, maxBins, maxDepth, maxMemoryInMB, minInfoGain, minInstancesPerNode
getLabelCol, labelCol
featuresCol, getFeaturesCol
getPredictionCol, predictionCol
clear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
toString
checkpointInterval, getCheckpointInterval
getImpurity, getOldImpurity, impurity
getVarianceCol, varianceCol
write
save
initializeLogging, initializeLogIfNecessary, initializeLogIfNecessary, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public DecisionTreeRegressor(String uid)
public DecisionTreeRegressor()
public static final String[] supportedImpurities()
public static DecisionTreeRegressor load(String path)
public static MLReader<T> read()
public String uid()
Identifiable
uid
in interface Identifiable
public DecisionTreeRegressor setMaxDepth(int value)
setMaxDepth
in interface DecisionTreeParams
value
- (undocumented)public DecisionTreeRegressor setMaxBins(int value)
setMaxBins
in interface DecisionTreeParams
value
- (undocumented)public DecisionTreeRegressor setMinInstancesPerNode(int value)
setMinInstancesPerNode
in interface DecisionTreeParams
value
- (undocumented)public DecisionTreeRegressor setMinInfoGain(double value)
setMinInfoGain
in interface DecisionTreeParams
value
- (undocumented)public DecisionTreeRegressor setMaxMemoryInMB(int value)
setMaxMemoryInMB
in interface DecisionTreeParams
value
- (undocumented)public DecisionTreeRegressor setCacheNodeIds(boolean value)
setCacheNodeIds
in interface DecisionTreeParams
value
- (undocumented)public DecisionTreeRegressor setCheckpointInterval(int value)
SparkContext
.
Must be at least 1.
(default = 10)setCheckpointInterval
in interface DecisionTreeParams
value
- (undocumented)public DecisionTreeRegressor setImpurity(String value)
setImpurity
in interface TreeRegressorParams
value
- (undocumented)public DecisionTreeRegressor setSeed(long value)
setSeed
in interface DecisionTreeParams
value
- (undocumented)public DecisionTreeRegressor setVarianceCol(String value)
public DecisionTreeRegressor copy(ParamMap extra)
Params
defaultCopy()
.copy
in interface Params
copy
in class Predictor<Vector,DecisionTreeRegressor,DecisionTreeRegressionModel>
extra
- (undocumented)