|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.rules.part.ClassifierDecList | +--weka.classifiers.rules.part.PruneableDecList
Class for handling a partial tree structure that can be pruned using a pruning set.
Constructor Summary | |
PruneableDecList(ModelSelection toSelectLocModel,
int minNum)
Constructor for pruneable partial tree structure. |
Method Summary | |
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. |
Methods inherited from class weka.classifiers.rules.part.ClassifierDecList |
buildDecList, buildRule, chooseIndex, chooseLastIndex, classifyInstance, cleanup, distributionForInstance, toString, weight |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PruneableDecList(ModelSelection toSelectLocModel, int minNum)
toSelectLocModel
- selection method for local splitting modelminNum
- minimum number of objects in leafMethod Detail |
public 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 wrong
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London