|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.rules.part.ClassifierDecList
weka.classifiers.rules.part.PruneableDecList
public class 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. |
java.lang.String |
getRevision()
Returns the revision string. |
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 wrongpublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class ClassifierDecList
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |