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
ConstructorDescriptionClassifierDecList
(ModelSelection toSelectLocModel, int minNum) Constructor - just calls constructor of class DecList. -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildDecList
(Instances data, boolean leaf) Builds the partial tree without hold out set.void
Method for building a pruned partial tree.final int
Method for choosing a subset to expand.final int
Choose last index (ie.double
classifyInstance
(Instance instance) Classifies an instance.final void
Cleanup in order to save memory.final double[]
distributionForInstance
(Instance instance) Returns class probabilities for a weighted instance.Returns the revision string.toString()
Prints rules.double
Returns 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:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-