public static enum GradientBoosting.LossFunctionType extends Enum<GradientBoosting.LossFunctionType>
Enum Constant and Description |
---|
ADABOOST
The loss criteria is the AdaBoost.M1 criterion.
|
BERNOULLI
The loss criteria is the binomial or Bernoulli negative
log-likelihood, or deviance.
|
HUBER_M
The loss criteria is the Huber-M weighted squared error and absolute
deviation error with parameter α.
|
LEAST_ABSOLUTE_DEVIATION
The loss criteria is least absolute deviation error.
|
LEAST_SQUARES
The loss criteria is least squared error.
|
MULTINOMIAL_DEVIANCE
The loss criteria is the (K-class) multinomial negative
log-likelihood, or multinomial deviance.
|
Modifier and Type | Method and Description |
---|---|
static GradientBoosting.LossFunctionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GradientBoosting.LossFunctionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GradientBoosting.LossFunctionType LEAST_SQUARES
L(yi,f(xi))=∑(yi−f(xi))2
public static final GradientBoosting.LossFunctionType LEAST_ABSOLUTE_DEVIATION
L(yi,f(xi))=∑|(yi−f(xi))|
public static final GradientBoosting.LossFunctionType HUBER_M
L(yi,f(xi))=∑Ψ(yi,f(xi))
whereΨ(y,f(x))={(y−f(x))2for|y−f(x)|≤δ2δ(|y−f(x)|−δ)for|y−f(x)|>δ
And where δ is the α -empirical quantile of the residuals, yi−f(xi),i=1,...,n
public static final GradientBoosting.LossFunctionType ADABOOST
L(yi,f(xi))=∑exp(−(2yi−1)f(xi))
public static final GradientBoosting.LossFunctionType MULTINOMIAL_DEVIANCE
L(yi,f(xi))=−2∑i∑kyiklog(pik)
wherepik=expfk(xi)(∑kexpfk(xi))
public static final GradientBoosting.LossFunctionType BERNOULLI
L(yi,f(xi))=−2∑(yif(xi)−log(1+exp(f(xi)))
public static GradientBoosting.LossFunctionType[] values()
for (GradientBoosting.LossFunctionType c : GradientBoosting.LossFunctionType.values()) System.out.println(c);
public static GradientBoosting.LossFunctionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020 Rogue Wave Software. All rights reserved.