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, transformSchemaequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNumTrees, numTreesfeatureSubsetStrategy, getFeatureSubsetStrategy, getOldStrategy, getSubsamplingRate, subsamplingRatecacheNodeIds, getCacheNodeIds, getMaxBins, getMaxDepth, getMaxMemoryInMB, getMinInfoGain, getMinInstancesPerNode, getOldStrategy, maxBins, maxDepth, maxMemoryInMB, minInfoGain, minInstancesPerNodevalidateAndTransformSchemagetLabelCol, 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, impuritywritesaveinitializeLogging, initializeLogIfNecessary, initializeLogIfNecessary, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningpublic 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()
Identifiableuid in interface Identifiablepublic RandomForestRegressor setMaxDepth(int value)
setMaxDepth in interface DecisionTreeParamsvalue - (undocumented)public RandomForestRegressor setMaxBins(int value)
setMaxBins in interface DecisionTreeParamsvalue - (undocumented)public RandomForestRegressor setMinInstancesPerNode(int value)
setMinInstancesPerNode in interface DecisionTreeParamsvalue - (undocumented)public RandomForestRegressor setMinInfoGain(double value)
setMinInfoGain in interface DecisionTreeParamsvalue - (undocumented)public RandomForestRegressor setMaxMemoryInMB(int value)
setMaxMemoryInMB in interface DecisionTreeParamsvalue - (undocumented)public RandomForestRegressor setCacheNodeIds(boolean value)
setCacheNodeIds in interface DecisionTreeParamsvalue - (undocumented)public RandomForestRegressor setCheckpointInterval(int value)
SparkContext.
Must be at least 1.
(default = 10)setCheckpointInterval in interface DecisionTreeParamsvalue - (undocumented)public RandomForestRegressor setImpurity(String value)
setImpurity in interface TreeRegressorParamsvalue - (undocumented)public RandomForestRegressor setSubsamplingRate(double value)
setSubsamplingRate in interface TreeEnsembleParamsvalue - (undocumented)public RandomForestRegressor setSeed(long value)
setSeed in interface DecisionTreeParamsvalue - (undocumented)public RandomForestRegressor setNumTrees(int value)
setNumTrees in interface RandomForestParamsvalue - (undocumented)public RandomForestRegressor setFeatureSubsetStrategy(String value)
setFeatureSubsetStrategy in interface TreeEnsembleParamsvalue - (undocumented)public RandomForestRegressor copy(ParamMap extra)
ParamsdefaultCopy().copy in interface Paramscopy in class Predictor<Vector,RandomForestRegressor,RandomForestRegressionModel>extra - (undocumented)