public class PruneableDecList extends ClassifierDecList
indeX, m_isEmpty, m_isLeaf, m_localModel, m_minNumObj, m_sons, m_splitCrit, m_test, m_toSelectModel, m_train| Constructor and Description |
|---|
PruneableDecList(ModelSelection toSelectLocModel,
int minNum)
Constructor for pruneable partial tree structure.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildDecList(Instances train,
Instances test,
boolean leaf)
Builds the partial tree with hold out set
|
void |
buildRule(Instances train,
Instances test)
Method for building a pruned partial tree.
|
protected ClassifierDecList |
getNewDecList(Instances train,
Instances test,
boolean leaf)
Returns a newly created tree.
|
java.lang.String |
getRevision()
Returns the revision string.
|
protected void |
pruneEnd()
Prunes the end of the rule.
|
buildDecList, buildRule, chooseIndex, chooseLastIndex, classifyInstance, cleanup, distributionForInstance, getNewDecList, getSizeOfBranch, localModel, son, toString, weightpublic PruneableDecList(ModelSelection toSelectLocModel, int minNum)
toSelectLocModel - selection method for local splitting modelminNum - minimum number of objects in leafpublic void buildRule(Instances train, Instances test) throws java.lang.Exception
java.lang.Exception - if tree can't be built successfullypublic void buildDecList(Instances train, Instances test, boolean leaf) throws java.lang.Exception
java.lang.Exception - if something goes wrongprotected ClassifierDecList getNewDecList(Instances train, Instances test, boolean leaf) throws java.lang.Exception
train - train datatest - test dataleaf - java.lang.Exception - if something goes wrongprotected void pruneEnd()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class ClassifierDecList