public static enum DecisionTree.SplitRule extends Enum<DecisionTree.SplitRule>
Enum Constant and Description |
---|
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(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 DecisionTree.SplitRule[] values()
for (DecisionTree.SplitRule c : DecisionTree.SplitRule.values()) System.out.println(c);
public static DecisionTree.SplitRule 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 nullCopyright © 2015. All rights reserved.