MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / prune

Method prune

JSAT/src/jsat/classifiers/trees/TreePruner.java:65–68  ·  view source on GitHub ↗

Performs pruning starting from the root node of a tree @param root the root node of a decision tree @param method the pruning method to use @param testSet the test set of data points to use for pruning

(TreeNodeVisitor root, PruningMethod method, ClassificationDataSet testSet)

Source from the content-addressed store, hash-verified

63 * @param testSet the test set of data points to use for pruning
64 */
65 public static void prune(TreeNodeVisitor root, PruningMethod method, ClassificationDataSet testSet)
66 {
67 prune(root, method, testSet.getAsDPPList());
68 }
69
70 /**
71 * Performs pruning starting from the root node of a tree

Callers 1

trainCMethod · 0.80

Calls 3

pruneReduceErrorMethod · 0.95
pruneErrorBasedMethod · 0.95
getAsDPPListMethod · 0.45

Tested by

no test coverage detected