All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.rules.part.ClassifierDecList

java.lang.Object
    |
    +----weka.classifiers.rules.part.ClassifierDecList

public class ClassifierDecList
extends java.lang.Object
implements java.io.Serializable
Class for handling a rule (partial tree) for a decision list.

Version:
$Revision: 1.9 $
Author:
Eibe Frank (eibe@cs.waikato.ac.nz)

Constructor Index

 o ClassifierDecList(ModelSelection, int)
Constructor - just calls constructor of class DecList.

Method Index

 o buildDecList(Instances, boolean)
Builds the partial tree without hold out set.
 o buildRule(Instances)
Method for building a pruned partial tree.
 o chooseIndex()
Method for choosing a subset to expand.
 o chooseLastIndex()
Choose last index (ie.
 o classifyInstance(Instance)
Classifies an instance.
 o cleanup(Instances)
Cleanup in order to save memory.
 o distributionForInstance(Instance)
Returns class probabilities for a weighted instance.
 o toString()
Prints rules.
 o weight(Instance)
Returns the weight a rule assigns to an instance.

Constructor Detail

 o ClassifierDecList
public ClassifierDecList(ModelSelection toSelectLocModel,
                         int minNum)
          Constructor - just calls constructor of class DecList.

Method Detail

 o buildRule
public void buildRule(Instances data) throws java.lang.Exception
          Method for building a pruned partial tree.
Throws:
java.lang.Exception - if something goes wrong
 o buildDecList
public void buildDecList(Instances data,
                         boolean leaf) throws java.lang.Exception
          Builds the partial tree without hold out set.
Throws:
java.lang.Exception - if something goes wrong
 o classifyInstance
public double classifyInstance(Instance instance) throws java.lang.Exception
          Classifies an instance.
Throws:
java.lang.Exception - if something goes wrong
 o distributionForInstance
public final double[] distributionForInstance(Instance instance) throws java.lang.Exception
          Returns class probabilities for a weighted instance.
Throws:
java.lang.Exception - if something goes wrong
 o weight
public double weight(Instance instance) throws java.lang.Exception
          Returns the weight a rule assigns to an instance.
Throws:
java.lang.Exception - if something goes wrong
 o cleanup
public final void cleanup(Instances justHeaderInfo)
          Cleanup in order to save memory.
 o toString
public java.lang.String toString()
          Prints rules.
Overrides:
toString in class java.lang.Object
 o chooseIndex
public final int chooseIndex()
          Method for choosing a subset to expand.
 o chooseLastIndex
public final int chooseLastIndex()
          Choose last index (ie. choose rule).

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home