Package smile.base.cart
Enum Class Loss.Type
- All Implemented Interfaces:
Serializable
,Comparable<Loss.Type>
,Constable
- Enclosing interface:
Loss
The type of loss.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionHuber loss function for M-regression, which attempts resistance to long-tailed error distributions and outliers while maintaining high efficiency for normally distributed errors.Least absolute deviation regression.Least squares regression.Quantile regression. -
Method Summary
-
Enum Constant Details
-
LeastSquares
Least squares regression. Least-squares is highly efficient for normally distributed errors but is prone to long tails and outliers. -
Quantile
Quantile regression. The gradient tree boosting based on this loss function is highly robust. The trees use only order information on the input variables and the pseudo-response has only two values {-1, +1}. The line searches (terminal node values) use only specified quantile ratio. -
LeastAbsoluteDeviation
Least absolute deviation regression. The gradient tree boosting based on this loss function is highly robust. The trees use only order information on the input variables and the pseudo-response has only two values {-1, +1}. The line searches (terminal node values) use only medians. This is a special case of quantile regression of q = 0.5. -
Huber
Huber loss function for M-regression, which attempts resistance to long-tailed error distributions and outliers while maintaining high efficiency for normally distributed errors.
-
-
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
-