public static enum DecisionTree.SplitRule extends java.lang.Enum<DecisionTree.SplitRule>
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 DecisionTree.SplitRule |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DecisionTree.SplitRule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DecisionTree.SplitRule GINI
public static final DecisionTree.SplitRule ENTROPY
public static final DecisionTree.SplitRule CLASSIFICATION_ERROR
public static DecisionTree.SplitRule[] values()
for (DecisionTree.SplitRule c : DecisionTree.SplitRule.values()) System.out.println(c);
public static DecisionTree.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