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
|
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, getCapabilities, getLocalModel, getMembershipValues, getSons, getTrainingData, graphType, isLeaf, numLeaves, numNodes, prefix, toSource
public NBTreeClassifierTree(ModelSelection toSelectLocModel)
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