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, toSourcepublic NBTreeClassifierTree(ModelSelection toSelectLocModel)
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class ClassifierTreeCapabilitiespublic void buildClassifier(Instances data) throws java.lang.Exception
buildClassifier in class ClassifierTreedata - 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 ClassifierTreepublic java.lang.String graph()
throws java.lang.Exception
graph in interface Drawablegraph in class ClassifierTreejava.lang.Exception - if something goes wrongpublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class ClassifierTree