public class NBTreeClassifierTree extends ClassifierTree
m_id, m_isEmpty, m_isLeaf, m_localModel, m_sons, m_test, m_toSelectModel, m_trainBayesNet, 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
|
protected ClassifierTree |
getNewTree(Instances data)
Returns a newly created tree.
|
protected ClassifierTree |
getNewTree(Instances train,
Instances test)
Returns a newly created 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, nextID, numLeaves, numNodes, prefix, resetID, toSourcepublic NBTreeClassifierTree(ModelSelection toSelectLocModel)
public void buildClassifier(Instances data) throws java.lang.Exception
buildClassifier in class ClassifierTreedata - the data to build the tree fromjava.lang.Exception - if something goes wrongprotected ClassifierTree getNewTree(Instances data) throws java.lang.Exception
getNewTree in class ClassifierTreedata - the training datajava.lang.Exception - if something goes wrongprotected ClassifierTree getNewTree(Instances train, Instances test) throws java.lang.Exception
getNewTree in class ClassifierTreetrain - the training datatest - the pruning data.java.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