public enum DistributionFamily extends java.lang.Enum<DistributionFamily>
Enum Constant and Description |
---|
AUTO |
bernoulli |
gamma |
gaussian |
huber |
laplace |
modified_huber |
multinomial |
poisson |
quantile |
tweedie |
Modifier and Type | Method and Description |
---|---|
static double |
exp(double x) |
static java.lang.String |
expString(java.lang.String x) |
double |
link(double f)
Canonical link
|
double |
linkInv(double f)
Canonical link inverse
|
java.lang.String |
linkInvString(java.lang.String f)
String version of link inverse (for POJO scoring code generation)
|
static double |
log(double x) |
static DistributionFamily |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DistributionFamily[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistributionFamily AUTO
public static final DistributionFamily bernoulli
public static final DistributionFamily modified_huber
public static final DistributionFamily multinomial
public static final DistributionFamily gaussian
public static final DistributionFamily poisson
public static final DistributionFamily gamma
public static final DistributionFamily tweedie
public static final DistributionFamily huber
public static final DistributionFamily laplace
public static final DistributionFamily quantile
public static DistributionFamily[] values()
for (DistributionFamily c : DistributionFamily.values()) System.out.println(c);
public static DistributionFamily 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 double linkInv(double f)
f
- value in link space, to be transformed back to original spacepublic double link(double f)
f
- value in original space, to be transformed to link spacepublic java.lang.String linkInvString(java.lang.String f)
f
- value to be transformed by link inversepublic static double exp(double x)
public static java.lang.String expString(java.lang.String x)
public static double log(double x)