Class NBTreeClassifierTree
java.lang.Object
weka.classifiers.trees.j48.ClassifierTree
weka.classifiers.trees.j48.NBTreeClassifierTree
- All Implemented Interfaces:
Serializable, CapabilitiesHandler, Drawable, RevisionHandler
Class for handling a naive bayes tree structure used for
classification.
- Version:
- $Revision: 10286 $
- Author:
- Mark Hall (mhall@cs.waikato.ac.nz)
- See Also:
-
Field Summary
Fields inherited from interface Drawable
BayesNet, Newick, NOT_DRAWABLE, TREE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildClassifier(Instances data) Method for building a naive bayes classifier treeReturns default capabilities of the classifier tree.Returns the revision string.graph()Returns graph describing the tree.Print the models at the leavestoString()Prints tree structure.Methods inherited from class ClassifierTree
assignIDs, buildTree, buildTree, classifyInstance, cleanup, distributionForInstance, graphType, numLeaves, numNodes, prefix, toSource
-
Constructor Details
-
NBTreeClassifierTree
-
-
Method Details
-
getCapabilities
Returns default capabilities of the classifier tree.- Specified by:
getCapabilitiesin interfaceCapabilitiesHandler- Overrides:
getCapabilitiesin classClassifierTree- Returns:
- the capabilities of this classifier tree
- See Also:
-
buildClassifier
Method for building a naive bayes classifier tree- Overrides:
buildClassifierin classClassifierTree- Parameters:
data- the data to build the tree from- Throws:
Exception- if something goes wrong
-
printLeafModels
Print the models at the leaves- Returns:
- textual description of the leaf models
-
toString
Prints tree structure.- Overrides:
toStringin classClassifierTree- Returns:
- the tree structure
-
graph
-
getRevision
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Overrides:
getRevisionin classClassifierTree- Returns:
- the revision
-