Enum Constant and Description |
---|
Absolute |
Categorical |
Hinge |
Huber |
Logistic |
Ordinal |
Periodic |
Poisson |
Quadratic |
Modifier and Type | Method and Description |
---|---|
double |
impute(double u)
\argmin_a L(u, a): Data imputation for real numeric values
|
abstract boolean |
isForBinary() |
abstract boolean |
isForCategorical() |
abstract boolean |
isForNumeric() |
double |
lgrad(double u,
double a)
\grad_u L(u,a): Derivative of the numeric loss function with respect to u
|
double |
loss(double u,
double a)
Loss function for numeric variables
|
int |
mimpute(double[] u)
\argmin_a L(u, a): Data imputation for categorical values {0, 1, 2, ...}
|
double[] |
mlgrad(double[] u,
int a)
\grad_u L(u,a): Gradient of multidimensional loss function with respect to u
|
double[] |
mlgrad(double[] u,
int a,
double[] prod,
int u_len)
\grad_u L(u,a): Gradient of multidimensional loss function with respect to u.
|
double |
mloss(double[] u,
int a)
Loss function for categorical variables where the size of u represents the true column length.
|
double |
mloss(double[] u,
int a,
int u_len)
Loss function for categorical variables performing same function as mloss above.
|
void |
setParameters(int p)
Initialize additional parameters on the loss function.
|
static GlrmLoss |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GlrmLoss[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GlrmLoss Quadratic
public static final GlrmLoss Absolute
public static final GlrmLoss Huber
public static final GlrmLoss Poisson
public static final GlrmLoss Periodic
public static final GlrmLoss Logistic
public static final GlrmLoss Hinge
public static final GlrmLoss Categorical
public static final GlrmLoss Ordinal
public static GlrmLoss[] values()
for (GlrmLoss c : GlrmLoss.values()) System.out.println(c);
public static GlrmLoss valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract boolean isForNumeric()
public abstract boolean isForCategorical()
public abstract boolean isForBinary()
public double loss(double u, double a)
public double lgrad(double u, double a)
public double impute(double u)
public double mloss(double[] u, int a)
public double mloss(double[] u, int a, int u_len)
public double[] mlgrad(double[] u, int a)
public double[] mlgrad(double[] u, int a, double[] prod, int u_len)
public int mimpute(double[] u)
public void setParameters(int p)