Class Grading

All Implemented Interfaces:
Serializable, Cloneable, CapabilitiesHandler, OptionHandler, Randomizable, RevisionHandler, TechnicalInformationHandler

public class Grading extends Stacking implements TechnicalInformationHandler
Implements Grading. The base classifiers are "graded".

For more information, see

A.K. Seewald, J. Fuernkranz: An Evaluation of Grading Classifiers. In: Advances in Intelligent Data Analysis: 4th International Conference, Berlin/Heidelberg/New York/Tokyo, 115-124, 2001.

BibTeX:

 @inproceedings{Seewald2001,
    address = {Berlin/Heidelberg/New York/Tokyo},
    author = {A.K. Seewald and J. Fuernkranz},
    booktitle = {Advances in Intelligent Data Analysis: 4th International Conference},
    editor = {F. Hoffmann et al.},
    pages = {115-124},
    publisher = {Springer},
    title = {An Evaluation of Grading Classifiers},
    year = {2001}
 }
 

Valid options are:

 -M <scheme specification>
  Full name of meta classifier, followed by options.
  (default: "weka.classifiers.rules.Zero")
 -X <number of folds>
  Sets the number of cross-validation folds.
 -S <num>
  Random number seed.
  (default 1)
 -B <classifier specification>
  Full class name of classifier to include, followed
  by scheme options. May be specified multiple times.
  (default: "weka.classifiers.rules.ZeroR")
 -D
  If set, classifier is run in debug mode and
  may output additional info to the console
Version:
$Revision: 1.13 $
Author:
Alexander K. Seewald (alex@seewald.at), Eibe Frank (eibe@cs.waikato.ac.nz)
See Also:
  • Constructor Details

    • Grading

      public Grading()
  • Method Details

    • globalInfo

      public String globalInfo()
      Returns a string describing classifier
      Overrides:
      globalInfo in class Stacking
      Returns:
      a description suitable for displaying in the explorer/experimenter gui
    • getTechnicalInformation

      public TechnicalInformation getTechnicalInformation()
      Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
      Specified by:
      getTechnicalInformation in interface TechnicalInformationHandler
      Overrides:
      getTechnicalInformation in class Stacking
      Returns:
      the technical information about this class
    • distributionForInstance

      public double[] distributionForInstance(Instance instance) throws Exception
      Returns class probabilities for a given instance using the stacked classifier. One class will always get all the probability mass (i.e. probability one).
      Overrides:
      distributionForInstance in class Stacking
      Parameters:
      instance - the instance to be classified
      Returns:
      the class distribution for the given instance
      Throws:
      Exception - if instance could not be classified successfully
    • toString

      public String toString()
      Output a representation of this classifier
      Overrides:
      toString in class Stacking
      Returns:
      a string representation of the classifier
    • getRevision

      public String getRevision()
      Returns the revision string.
      Specified by:
      getRevision in interface RevisionHandler
      Overrides:
      getRevision in class Stacking
      Returns:
      the revision
    • main

      public static void main(String[] argv)
      Main method for testing this class.
      Parameters:
      argv - should contain the following arguments: -t training file [-T test file] [-c class index]