Package ai.djl.ml.xgboost
Enum XgbSymbolBlock.Mode
- java.lang.Object
-
- java.lang.Enum<XgbSymbolBlock.Mode>
-
- ai.djl.ml.xgboost.XgbSymbolBlock.Mode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<XgbSymbolBlock.Mode>
- Enclosing class:
- XgbSymbolBlock
public static enum XgbSymbolBlock.Mode extends java.lang.Enum<XgbSymbolBlock.Mode>
The mode of inference for OptionMask.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTRIBDEFAULTLEAFOUTPUT_MARGIN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Gets the value of the mode.static XgbSymbolBlock.ModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static XgbSymbolBlock.Mode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final XgbSymbolBlock.Mode DEFAULT
-
OUTPUT_MARGIN
public static final XgbSymbolBlock.Mode OUTPUT_MARGIN
-
LEAF
public static final XgbSymbolBlock.Mode LEAF
-
CONTRIB
public static final XgbSymbolBlock.Mode CONTRIB
-
-
Method Detail
-
values
public static XgbSymbolBlock.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (XgbSymbolBlock.Mode c : XgbSymbolBlock.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XgbSymbolBlock.Mode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public int getValue()
Gets the value of the mode.- Returns:
- the value in number
-
-