public class PruneableDecList extends ClassifierDecList
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.
|
java.lang.String |
getRevision()
Returns the revision string.
|
buildDecList, buildRule, chooseIndex, chooseLastIndex, classifyInstance, cleanup, distributionForInstance, toString, weight
public 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 wrongpublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class ClassifierDecList