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

Class NBTreeClassifierTree

    • Constructor Detail

      • NBTreeClassifierTree

        public NBTreeClassifierTree(ModelSelection toSelectLocModel)
    • Method Detail

      • buildClassifier

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

        public java.lang.String printLeafModels()
        Print the models at the leaves
        Returns:
        textual description of the leaf models
      • toString

        public java.lang.String toString()
        Prints tree structure.
        Overrides:
        toString in class ClassifierTree
        Returns:
        the tree structure
      • graph

        public java.lang.String graph()
                               throws java.lang.Exception
        Returns graph describing the tree.
        Specified by:
        graph in interface Drawable
        Overrides:
        graph in class ClassifierTree
        Returns:
        the tree as graph
        Throws:
        java.lang.Exception - if something goes wrong

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.