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

Class weka.classifiers.j48.ClassifierDecList

java.lang.Object
   |
   +----weka.classifiers.j48.ClassifierDecList

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

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

Constructor Index

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

Method Index

 o buildDecList(Instances, boolean)
Builds the partial tree without hold out set.
 o buildDecList(Instances, Instances, boolean)
Builds the partial tree with hold out set
 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.

Constructors

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

Methods

 o buildDecList
 public void buildDecList(Instances data,
                          boolean leaf) throws Exception
Builds the partial tree without hold out set.

Throws: Exception
if something goes wrong
 o buildDecList
 public void buildDecList(Instances train,
                          Instances test,
                          boolean leaf) throws Exception
Builds the partial tree with hold out set

Throws: Exception
if something goes wrong
 o classifyInstance
 public double classifyInstance(Instance instance) throws Exception
Classifies an instance.

Throws: Exception
if something goes wrong
 o distributionForInstance
 public final double[] distributionForInstance(Instance instance) throws Exception
Returns class probabilities for a weighted instance.

Throws: Exception
if something goes wrong
 o weight
 public double weight(Instance instance) throws Exception
Returns the weight a rule assigns to an instance.

Throws: Exception
if something goes wrong
 o cleanup
 public final void cleanup(Instances justHeaderInfo)
Cleanup in order to save memory.

 o toString
 public String toString()
Prints rules.

Overrides:
toString in class Object

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