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

Class weka.classifiers.CheckClassifier

java.lang.Object
   |
   +----weka.classifiers.CheckClassifier

public class CheckClassifier
extends Object
implements OptionHandler
Class for examining the capabilities and finding problems with classifiers. If you implement a classifier using the WEKA.libraries, you should run the checks on it to ensure robustness and correct operation. Passing all the tests of this object does not mean bugs in the classifier don't exist, but this will help find some common ones.

Typical usage:

java weka.classifiers.CheckClassifier -W classifier_name classifier_options

CheckClassifier reports on the following:

Running CheckClassifier with the debug option set will output the training and test datasets for any failed tests.

Valid options are:

-D
Turn on debugging output.

-W classname
Specify the full class name of a classifier to perform the tests on (required).

Options after -- are passed to the designated classifier.

Version:
$Revision: 1.8 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz)

Constructor Index

 o CheckClassifier()

Method Index

 o doTests()
Begin the tests, reporting results to System.out
 o getClassifier()
Get the classifier used as the classifier
 o getDebug()
Get whether debugging is turned on
 o getOptions()
Gets the current settings of the CheckClassifier.
 o listOptions()
Returns an enumeration describing the available options
 o main(String[])
Test method for this class
 o setClassifier(Classifier)
Set the classifier for boosting.
 o setDebug(boolean)
Set debugging mode
 o setOptions(String[])
Parses a given list of options.

Constructors

 o CheckClassifier
 public CheckClassifier()

Methods

 o listOptions
 public Enumeration listOptions()
Returns an enumeration describing the available options

Returns:
an enumeration of all the available options
 o setOptions
 public void setOptions(String options[]) throws Exception
Parses a given list of options. Valid options are:

-D
Turn on debugging output.

-W classname
Specify the full class name of a classifier to perform the tests on (required).

Options after -- are passed to the designated classifier

Parameters:
options - the list of options as an array of strings
Throws: Exception
if an option is not supported
 o getOptions
 public String[] getOptions()
Gets the current settings of the CheckClassifier.

Returns:
an array of strings suitable for passing to setOptions
 o doTests
 public void doTests()
Begin the tests, reporting results to System.out

 o setDebug
 public void setDebug(boolean debug)
Set debugging mode

Parameters:
debug - true if debug output should be printed
 o getDebug
 public boolean getDebug()
Get whether debugging is turned on

Returns:
true if debugging output is on
 o setClassifier
 public void setClassifier(Classifier newClassifier)
Set the classifier for boosting.

Parameters:
newClassifier - the Classifier to use.
 o getClassifier
 public Classifier getClassifier()
Get the classifier used as the classifier

Returns:
the classifier used as the classifier
 o main
 public static void main(String args[])
Test method for this class


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