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.
|
java.lang.String |
getRevision()
Returns the revision string.
|
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.
|
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 java.lang.Exception
buildClassifier
in class ClassifierTree
data
- the data to build the tree fromjava.lang.Exception
- if something goes wrongpublic java.lang.String printLeafModels()
public java.lang.String toString()
toString
in class ClassifierTree
public java.lang.String graph() throws java.lang.Exception
graph
in interface Drawable
graph
in class ClassifierTree
java.lang.Exception
- if something goes wrongpublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class ClassifierTree