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
|
Capabilities |
getCapabilities()
Returns default capabilities of the classifier tree.
|
protected ClassifierTree |
getNewTree(Instances data)
Returns a newly created tree.
|
protected ClassifierTree |
getNewTree(Instances train,
Instances test)
Returns a newly created 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, nextID, numLeaves, numNodes, prefix, resetID, toSourcepublic NBTreeClassifierTree(ModelSelection toSelectLocModel)
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class ClassifierTreeCapabilitiespublic void buildClassifier(Instances data) throws Exception
buildClassifier in class ClassifierTreedata - the data to build the tree fromException - if something goes wrongprotected ClassifierTree getNewTree(Instances data) throws Exception
getNewTree in class ClassifierTreedata - the training dataException - if something goes wrongprotected ClassifierTree getNewTree(Instances train, Instances test) throws Exception
getNewTree in class ClassifierTreetrain - the training datatest - the pruning data.Exception - if something goes wrongpublic String printLeafModels()
public String toString()
toString in class ClassifierTreepublic String graph() throws Exception
graph in interface Drawablegraph in class ClassifierTreeException - if something goes wrongpublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class ClassifierTreeCopyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.