Package org.tribuo.common.xgboost
Enum Class XGBoostTrainer.TreeMethod
- All Implemented Interfaces:
Serializable
,Comparable<XGBoostTrainer.TreeMethod>
,Constable
- Enclosing class:
- XGBoostTrainer<T extends Output<T>>
The tree building algorithm.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionApproximate greedy algorithm, using a quantile sketch of the data and a gradient histogram.Exact greedy algorithm, enumerates all split candidates.GPU implementation of theHIST
algorithm.Faster histogram optimized approximate algorithm. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic XGBoostTrainer.TreeMethod
Returns the enum constant of this class with the specified name.static XGBoostTrainer.TreeMethod[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
-
EXACT
Exact greedy algorithm, enumerates all split candidates. -
APPROX
Approximate greedy algorithm, using a quantile sketch of the data and a gradient histogram. -
HIST
Faster histogram optimized approximate algorithm. -
GPU_HIST
GPU implementation of theHIST
algorithm.Note: GPU computation may not be supported on all platforms, and Tribuo is not tested with XGBoost GPU support.
-
-
Field Details
-
paramName
The parameter name used by the XGBoost native library.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-