Enum Class Loss.Type

java.lang.Object
java.lang.Enum<Loss.Type>
smile.base.cart.Loss.Type
All Implemented Interfaces:
Serializable, Comparable<Loss.Type>, Constable
Enclosing interface:
Loss

public static enum Loss.Type extends Enum<Loss.Type>
The type of loss.
  • Enum Constant Details

    • LeastSquares

      public static final Loss.Type LeastSquares
      Least squares regression. Least-squares is highly efficient for normally distributed errors but is prone to long tails and outliers.
    • Quantile

      public static final Loss.Type 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

      public static final Loss.Type 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

      public static final Loss.Type 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

      public static Loss.Type[] 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

      public static Loss.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null