Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weka.classifiers.trees.j48
Class NBTreeClassifierTree

    java.lang.Object
      weka.classifiers.trees.j48.ClassifierTree
          weka.classifiers.trees.j48.NBTreeClassifierTree

All Implemented Interfaces:
  java.io.Serializable, Drawable

    public class NBTreeClassifierTree

extends ClassifierTree

Class for handling a naive bayes tree structure used for classification.

Version:
  $Revision: 1.1 $
Author:
  Mark Hall (mhall@cs.waikato.ac.nz)
See Also:
  Serialized Form

Field Summary

Fields inherited from interface weka.core.Drawable
`BayesNet, NOT_DRAWABLE, TREE`

Constructor Summary
`NBTreeClassifierTree(ModelSelection toSelectLocModel)`

Method Summary
`void` | `buildClassifier(Instances data)` Method for building a naive bayes classifier tree
`java.lang.String` | `graph()` Returns graph describing the tree.
`java.lang.String` | `printLeafModels()` Print the models at the leaves
`java.lang.String` | `toString()` Prints tree structure.

Methods inherited from class weka.classifiers.trees.j48.ClassifierTree
`assignIDs, buildTree, buildTree, classifyInstance, cleanup, distributionForInstance, graphType, numLeaves, numNodes, prefix, toSource`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

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`
  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`

### 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 graph described by a string
  Throws:
    `java.lang.Exception` - if something goes wrong

Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD