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

Class weka.classifiers.j48.MakeDecList

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

public class MakeDecList
extends java.lang.Object
implements java.io.Serializable
Class for handling a decision list.

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

Constructor Index

 o MakeDecList(ModelSelection, double, int)
Constructor for dec list pruned using C4.5 pruning.
 o MakeDecList(ModelSelection, int, int)
Constructor for dec list pruned using hold-out pruning.

Method Index

 o buildClassifier(Instances)
Builds dec list.
 o classifyInstance(Instance)
Classifies an instance.
 o distributionForInstance(Instance)
Returns the class distribution for an instance.
 o numRules()
Outputs the number of rules in the classifier.
 o toString()
Outputs the classifier into a string.

Constructor Detail

 o MakeDecList
public MakeDecList(ModelSelection toSelectLocModel,
                   double cf,
                   int minNum)
          Constructor for dec list pruned using C4.5 pruning.
 o MakeDecList
public MakeDecList(ModelSelection toSelectLocModel,
                   int num,
                   int minNum)
          Constructor for dec list pruned using hold-out pruning.

Method Detail

 o buildClassifier
public void buildClassifier(Instances data) throws java.lang.Exception
          Builds dec list.
Throws:
java.lang.Exception - if dec list can't be built successfully
 o toString
public java.lang.String toString()
          Outputs the classifier into a string.
Overrides:
toString in class java.lang.Object
 o classifyInstance
public double classifyInstance(Instance instance) throws java.lang.Exception
          Classifies an instance.
Throws:
java.lang.Exception - if instance can't be classified
 o distributionForInstance
public double[] distributionForInstance(Instance instance) throws java.lang.Exception
          Returns the class distribution for an instance.
Throws:
java.lang.Exception - if distribution can't be computed
 o numRules
public int numRules()
          Outputs the number of rules in the classifier.

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