Documentation of 'weka.classifiers.trees.j48.C45PruneableClassifierTree' Java class
C45PruneableClassifierTree
weka.classifiers.trees.j48

Class C45PruneableClassifierTree

    • Constructor Detail

      • C45PruneableClassifierTree

        public C45PruneableClassifierTree(ModelSelection toSelectLocModel,
                                          boolean pruneTree,
                                          float cf,
                                          boolean raiseTree,
                                          boolean cleanup,
                                          boolean collapseTree)
                                   throws java.lang.Exception
        Constructor for pruneable tree structure. Stores reference to associated training data at each node.
        Parameters:
        toSelectLocModel - selection method for local splitting model
        pruneTree - true if the tree is to be pruned
        cf - the confidence factor for pruning
        raiseTree -
        cleanup -
        Throws:
        java.lang.Exception - if something goes wrong
    • Method Detail

      • buildClassifier

        public void buildClassifier(Instances data)
                             throws java.lang.Exception
        Method for building a pruneable classifier tree.
        Overrides:
        buildClassifier in class ClassifierTree
        Parameters:
        data - the data for building the tree
        Throws:
        java.lang.Exception - if something goes wrong
      • collapse

        public final void collapse()
        Collapses a tree to a node if training error doesn't increase.
      • prune

        public void prune()
                   throws java.lang.Exception
        Prunes a tree using C4.5's pruning procedure.
        Throws:
        java.lang.Exception - if something goes wrong

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.