Documentation of 'jsat.classifiers.trees.TreePruner' Java class
TreePruner
jsat.classifiers.trees

Class TreePruner



  • public class TreePruner
    extends java.lang.Object
    Provides post-pruning algorithms for any decision tree that can be altered using the TreeNodeVisitor. Pruning is done with a held out testing set
    All pruning methods handle missing values
    NOTE: API still under work, expect changes
    • Method Detail

      • prune

        public static void prune(TreeNodeVisitor root,
                                 TreePruner.PruningMethod method,
                                 ClassificationDataSet testSet)
        Performs pruning starting from the root node of a tree
        Parameters:
        root - the root node of a decision tree
        method - the pruning method to use
        testSet - the test set of data points to use for pruning
      • prune

        public static void prune(TreeNodeVisitor root,
                                 TreePruner.PruningMethod method,
                                 java.util.List<DataPointPair<java.lang.Integer>> testSet)
        Performs pruning starting from the root node of a tree
        Parameters:
        root - the root node of a decision tree
        method - the pruning method to use
        testSet - the test set of data points to use for pruning

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.