public static enum StochasticSTLinearL1.Loss extends Enum<StochasticSTLinearL1.Loss>
Modifier and Type | Method and Description |
---|---|
abstract double |
beta()
Returns an upper bound on the 2nd derivative for classification
|
abstract CategoricalResults |
classify(double a)
The categorical results for a classification problem
|
abstract double |
deriv(double a,
double y)
Returns the value of the derivative of the loss function
|
abstract double |
loss(double a,
double y)
Returns the loss on the prediction
|
abstract double |
regress(double a)
The output value result for a regression problem
|
static StochasticSTLinearL1.Loss |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StochasticSTLinearL1.Loss[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StochasticSTLinearL1.Loss SQUARED
public static final StochasticSTLinearL1.Loss LOG
public static StochasticSTLinearL1.Loss[] values()
for (StochasticSTLinearL1.Loss c : StochasticSTLinearL1.Loss.values()) System.out.println(c);
public static StochasticSTLinearL1.Loss 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 nullpublic abstract double loss(double a, double y)
a
- the predicted valuey
- the target valuepublic abstract double deriv(double a, double y)
a
- the predicted valuey
- the target valuepublic abstract double beta()
public abstract CategoricalResults classify(double a)
a
- the dot product of the weight vector and an inputpublic abstract double regress(double a)
a
- the dot product of the weight vector and an inputCopyright © 2017. All rights reserved.