public class XGBoostOptions extends Object implements ClassificationOptions<XGBoostClassificationTrainer>
Modifier and Type | Field and Description |
---|---|
float |
xbgAlpha |
int |
xgbEnsembleSize |
float |
xgbEta |
float |
xgbGamma |
float |
xgbLambda |
int |
xgbMaxDepth |
float |
xgbMinWeight |
int |
xgbNumThreads |
boolean |
xgbQuiet |
float |
xgbSubsample |
float |
xgbSubsampleFeatures |
Constructor and Description |
---|
XGBoostOptions() |
Modifier and Type | Method and Description |
---|---|
XGBoostClassificationTrainer |
getTrainer()
Constructs the trainer based on the provided arguments.
|
@Option(longName="xgb-ensemble-size", usage="Number of trees in the ensemble.") public int xgbEnsembleSize
@Option(longName="xgb-alpha", usage="L1 regularization term for weights (default 0).") public float xbgAlpha
@Option(longName="xgb-min-weight", usage="Minimum sum of instance weights needed in a leaf (default 1, range [0,inf]).") public float xgbMinWeight
@Option(longName="xgb-max-depth", usage="Max tree depth (default 6, range (0,inf]).") public int xgbMaxDepth
@Option(longName="xgb-eta", usage="Step size shrinkage parameter (default 0.3, range [0,1]).") public float xgbEta
@Option(longName="xgb-subsample-features", usage="Subsample features for each tree (default 1, range (0,1]).") public float xgbSubsampleFeatures
@Option(longName="xgb-gamma", usage="Minimum loss reduction to make a split (default 0, range [0,inf]).") public float xgbGamma
@Option(longName="xgb-lambda", usage="L2 regularization term for weights (default 1).") public float xgbLambda
@Option(longName="xgb-quiet", usage="Make the XGBoost training procedure quiet.") public boolean xgbQuiet
@Option(longName="xgb-subsample", usage="Subsample size for each tree (default 1, range (0,1]).") public float xgbSubsample
@Option(longName="xgb-num-threads", usage="Number of threads to use (default 4, range (1, num hw threads)).") public int xgbNumThreads
public XGBoostClassificationTrainer getTrainer()
ClassificationOptions
getTrainer
in interface ClassificationOptions<XGBoostClassificationTrainer>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.