public static enum TreePruner.PruningMethod extends Enum<TreePruner.PruningMethod>
Enum Constant and Description |
---|
ERROR_BASED
Bottom-Up pessimistic pruning using Error based Pruning from the
C4.5 algorithm.
|
NONE
The tree will be left as generated, no pruning will occur.
|
REDUCED_ERROR
The tree will be pruned in a bottom up fashion, removing
leaf nodes if the removal does not reduce the accuracy on the testing
set
|
Modifier and Type | Method and Description |
---|---|
static TreePruner.PruningMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TreePruner.PruningMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TreePruner.PruningMethod NONE
public static final TreePruner.PruningMethod REDUCED_ERROR
public static final TreePruner.PruningMethod ERROR_BASED
TreeNodeVisitor.setPath(int, jsat.classifiers.trees.TreeNodeVisitor)
it will perform sub tree replacement for the maximal sub tree. public static TreePruner.PruningMethod[] values()
for (TreePruner.PruningMethod c : TreePruner.PruningMethod.values()) System.out.println(c);
public static TreePruner.PruningMethod 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 © 2017. All rights reserved.