public class NBTreeClassifierTree extends ClassifierTree
BayesNet, Newick, NOT_DRAWABLE, TREE
Constructor and Description |
---|
NBTreeClassifierTree(ModelSelection toSelectLocModel) |
Modifier and Type | Method and Description |
---|---|
void |
buildClassifier(Instances data)
Method for building a naive bayes classifier tree
|
Capabilities |
getCapabilities()
Returns default capabilities of the classifier tree.
|
String |
getRevision()
Returns the revision string.
|
String |
graph()
Returns graph describing the tree.
|
String |
printLeafModels()
Print the models at the leaves
|
String |
toString()
Prints tree structure.
|
assignIDs, buildTree, buildTree, classifyInstance, cleanup, distributionForInstance, graphType, numLeaves, numNodes, prefix, toSource
public NBTreeClassifierTree(ModelSelection toSelectLocModel)
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class ClassifierTree
Capabilities
public void buildClassifier(Instances data) throws Exception
buildClassifier
in class ClassifierTree
data
- the data to build the tree fromException
- if something goes wrongpublic String printLeafModels()
public String toString()
toString
in class ClassifierTree
public String graph() throws Exception
graph
in interface Drawable
graph
in class ClassifierTree
Exception
- if something goes wrongpublic String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class ClassifierTree
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.