Package weka.classifiers.rules.part
Class ClassifierDecList
java.lang.Object
weka.classifiers.rules.part.ClassifierDecList
- All Implemented Interfaces:
 Serializable,RevisionHandler
- Direct Known Subclasses:
 C45PruneableDecList,PruneableDecList
Class for handling a rule (partial tree) for a decision list.
- Version:
 - $Revision: 10153 $
 - Author:
 - Eibe Frank (eibe@cs.waikato.ac.nz)
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionClassifierDecList(ModelSelection toSelectLocModel, int minNum) Constructor - just calls constructor of class DecList. - 
Method Summary
Modifier and TypeMethodDescriptionvoidbuildDecList(Instances data, boolean leaf) Builds the partial tree without hold out set.voidMethod for building a pruned partial tree.final intMethod for choosing a subset to expand.final intChoose last index (ie.doubleclassifyInstance(Instance instance) Classifies an instance.final voidCleanup in order to save memory.final double[]distributionForInstance(Instance instance) Returns class probabilities for a weighted instance.Returns the revision string.toString()Prints rules.doubleReturns the weight a rule assigns to an instance. 
- 
Constructor Details
- 
ClassifierDecList
Constructor - just calls constructor of class DecList. 
 - 
 - 
Method Details
- 
buildRule
Method for building a pruned partial tree.- Throws:
 Exception- if something goes wrong
 - 
buildDecList
Builds the partial tree without hold out set.- Throws:
 Exception- if something goes wrong
 - 
classifyInstance
Classifies an instance.- Throws:
 Exception- if something goes wrong
 - 
distributionForInstance
Returns class probabilities for a weighted instance.- Throws:
 Exception- if something goes wrong
 - 
weight
Returns the weight a rule assigns to an instance.- Throws:
 Exception- if something goes wrong
 - 
cleanup
Cleanup in order to save memory. - 
toString
Prints rules. - 
chooseIndex
public final int chooseIndex()Method for choosing a subset to expand. - 
chooseLastIndex
public final int chooseLastIndex()Choose last index (ie. choose rule). - 
getRevision
Returns the revision string.- Specified by:
 getRevisionin interfaceRevisionHandler- Returns:
 - the revision
 
 
 -