public class RandomForestRegressor extends Predictor<Vector,RandomForestRegressor,RandomForestRegressionModel> implements RandomForestRegressorParams, DefaultParamsWritable
Constructor and Description |
---|
RandomForestRegressor() |
RandomForestRegressor(String uid) |
Modifier and Type | Method and Description |
---|---|
RandomForestRegressor |
copy(ParamMap extra)
Creates a copy of this instance with the same UID and some extra params.
|
static RandomForestRegressor |
load(String path) |
static MLReader<T> |
read() |
RandomForestRegressor |
setCacheNodeIds(boolean value) |
RandomForestRegressor |
setCheckpointInterval(int value)
Specifies how often to checkpoint the cached node IDs.
|
RandomForestRegressor |
setFeatureSubsetStrategy(String value) |
RandomForestRegressor |
setImpurity(String value) |
RandomForestRegressor |
setMaxBins(int value) |
RandomForestRegressor |
setMaxDepth(int value) |
RandomForestRegressor |
setMaxMemoryInMB(int value) |
RandomForestRegressor |
setMinInfoGain(double value) |
RandomForestRegressor |
setMinInstancesPerNode(int value) |
RandomForestRegressor |
setNumTrees(int value) |
RandomForestRegressor |
setSeed(long value) |
RandomForestRegressor |
setSubsamplingRate(double value) |
static String[] |
supportedFeatureSubsetStrategies()
Accessor for supported featureSubsetStrategy settings: auto, all, onethird, sqrt, log2
|
static String[] |
supportedImpurities()
Accessor for supported impurity settings: 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
getNumTrees, numTrees
featureSubsetStrategy, getFeatureSubsetStrategy, getOldStrategy, getSubsamplingRate, subsamplingRate
cacheNodeIds, getCacheNodeIds, getMaxBins, getMaxDepth, getMaxMemoryInMB, getMinInfoGain, getMinInstancesPerNode, getOldStrategy, maxBins, maxDepth, maxMemoryInMB, minInfoGain, minInstancesPerNode
validateAndTransformSchema
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
write
save
initializeLogging, initializeLogIfNecessary, initializeLogIfNecessary, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public RandomForestRegressor(String uid)
public RandomForestRegressor()
public static final String[] supportedImpurities()
public static final String[] supportedFeatureSubsetStrategies()
public static RandomForestRegressor load(String path)
public static MLReader<T> read()
public String uid()
Identifiable
uid
in interface Identifiable
public RandomForestRegressor setMaxDepth(int value)
setMaxDepth
in interface DecisionTreeParams
value
- (undocumented)public RandomForestRegressor setMaxBins(int value)
setMaxBins
in interface DecisionTreeParams
value
- (undocumented)public RandomForestRegressor setMinInstancesPerNode(int value)
setMinInstancesPerNode
in interface DecisionTreeParams
value
- (undocumented)public RandomForestRegressor setMinInfoGain(double value)
setMinInfoGain
in interface DecisionTreeParams
value
- (undocumented)public RandomForestRegressor setMaxMemoryInMB(int value)
setMaxMemoryInMB
in interface DecisionTreeParams
value
- (undocumented)public RandomForestRegressor setCacheNodeIds(boolean value)
setCacheNodeIds
in interface DecisionTreeParams
value
- (undocumented)public RandomForestRegressor setCheckpointInterval(int value)
SparkContext
.
Must be at least 1.
(default = 10)setCheckpointInterval
in interface DecisionTreeParams
value
- (undocumented)public RandomForestRegressor setImpurity(String value)
setImpurity
in interface TreeRegressorParams
value
- (undocumented)public RandomForestRegressor setSubsamplingRate(double value)
setSubsamplingRate
in interface TreeEnsembleParams
value
- (undocumented)public RandomForestRegressor setSeed(long value)
setSeed
in interface DecisionTreeParams
value
- (undocumented)public RandomForestRegressor setNumTrees(int value)
setNumTrees
in interface RandomForestParams
value
- (undocumented)public RandomForestRegressor setFeatureSubsetStrategy(String value)
setFeatureSubsetStrategy
in interface TreeEnsembleParams
value
- (undocumented)public RandomForestRegressor copy(ParamMap extra)
Params
defaultCopy()
.copy
in interface Params
copy
in class Predictor<Vector,RandomForestRegressor,RandomForestRegressionModel>
extra
- (undocumented)