public final class GBTRegressor extends Predictor<Vector,GBTRegressor,GBTRegressionModel> implements Logging
Gradient-Boosted Trees (GBTs)
learning algorithm for regression.
It supports both continuous and categorical features.Constructor and Description |
---|
GBTRegressor() |
GBTRegressor(String uid) |
Modifier and Type | Method and Description |
---|---|
String |
getLossType() |
Param<String> |
lossType()
Loss function which GBT tries to minimize.
|
GBTRegressor |
setCacheNodeIds(boolean value) |
GBTRegressor |
setCheckpointInterval(int value) |
GBTRegressor |
setImpurity(String value)
The impurity setting is ignored for GBT models.
|
GBTRegressor |
setLossType(String value) |
GBTRegressor |
setMaxBins(int value) |
GBTRegressor |
setMaxDepth(int value) |
GBTRegressor |
setMaxIter(int value) |
GBTRegressor |
setMaxMemoryInMB(int value) |
GBTRegressor |
setMinInfoGain(double value) |
GBTRegressor |
setMinInstancesPerNode(int value) |
GBTRegressor |
setSeed(long value) |
GBTRegressor |
setStepSize(double value) |
GBTRegressor |
setSubsamplingRate(double value) |
static String[] |
supportedLossTypes()
Accessor for supported loss settings: squared (L2), absolute (L1)
|
String |
uid() |
StructType |
validateAndTransformSchema(StructType schema,
boolean fitting,
DataType featuresDataType)
Validates and transforms the input schema with the provided param map.
|
copy, fit, setFeaturesCol, setLabelCol, setPredictionCol, transformSchema
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
clear, copyValues, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, setDefault, shouldOwn, validateParams
public static final String[] supportedLossTypes()
public String uid()
public GBTRegressor setMaxDepth(int value)
public GBTRegressor setMaxBins(int value)
public GBTRegressor setMinInstancesPerNode(int value)
public GBTRegressor setMinInfoGain(double value)
public GBTRegressor setMaxMemoryInMB(int value)
public GBTRegressor setCacheNodeIds(boolean value)
public GBTRegressor setCheckpointInterval(int value)
public GBTRegressor setImpurity(String value)
value
- (undocumented)public GBTRegressor setSubsamplingRate(double value)
public GBTRegressor setSeed(long value)
public GBTRegressor setMaxIter(int value)
public GBTRegressor setStepSize(double value)
public Param<String> lossType()
public GBTRegressor setLossType(String value)
public String getLossType()
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.