|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.rules.part.ClassifierDecList
Class for handling a rule (partial tree) for a decision list.
Constructor Summary | |
ClassifierDecList(ModelSelection toSelectLocModel,
int minNum)
Constructor - just calls constructor of class DecList. |
Method Summary | |
void |
buildDecList(Instances data,
boolean leaf)
Builds the partial tree without hold out set. |
void |
buildRule(Instances data)
Method for building a pruned partial tree. |
int |
chooseIndex()
Method for choosing a subset to expand. |
int |
chooseLastIndex()
Choose last index (ie. |
double |
classifyInstance(Instance instance)
Classifies an instance. |
void |
cleanup(Instances justHeaderInfo)
Cleanup in order to save memory. |
double[] |
distributionForInstance(Instance instance)
Returns class probabilities for a weighted instance. |
java.lang.String |
toString()
Prints rules. |
double |
weight(Instance instance)
Returns the weight a rule assigns to an instance. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClassifierDecList(ModelSelection toSelectLocModel, int minNum)
Method Detail |
public void buildRule(Instances data) throws java.lang.Exception
java.lang.Exception
- if something goes wrongpublic void buildDecList(Instances data, boolean leaf) throws java.lang.Exception
java.lang.Exception
- if something goes wrongpublic double classifyInstance(Instance instance) throws java.lang.Exception
java.lang.Exception
- if something goes wrongpublic final double[] distributionForInstance(Instance instance) throws java.lang.Exception
java.lang.Exception
- if something goes wrongpublic double weight(Instance instance) throws java.lang.Exception
java.lang.Exception
- if something goes wrongpublic final void cleanup(Instances justHeaderInfo)
public java.lang.String toString()
toString
in class java.lang.Object
public final int chooseIndex()
public final int chooseLastIndex()
|
|||||||||
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