Enum Constant and Description |
---|
CLASSIFICATION_ERROR
Classification error.
|
ENTROPY
Used by the ID3, C4.5 and C5.0 tree generation algorithms.
|
GINI
Used by the CART algorithm, Gini impurity is a measure of how often
a randomly chosen element from the set would be incorrectly labeled
if it were randomly labeled according to the distribution of labels
in the subset.
|
Modifier and Type | Method and Description |
---|---|
static SplitRule |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SplitRule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SplitRule GINI
public static final SplitRule ENTROPY
public static final SplitRule CLASSIFICATION_ERROR
public static SplitRule[] values()
for (SplitRule c : SplitRule.values()) System.out.println(c);
public static SplitRule 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 null