|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.CheckClassifier
public class CheckClassifier
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:
weka.classifiers.AbstractClassifierTest
uses this
class to test all the classifiers. Any changes here, have to be
checked in that abstract test class, too.
Valid options are:
-D
Nested Class Summary | |
---|---|
static class |
CheckClassifier.PostProcessor
a class for postprocessing the test-data |
Constructor Summary | |
---|---|
CheckClassifier()
|
Method Summary | |
---|---|
void |
doTests()
Begin the tests, reporting results to System.out |
Classifier |
getClassifier()
Get the classifier used as the classifier |
boolean |
getDebug()
Get whether debugging is turned on |
int |
getNumInstances()
Gets the current number of instances to use for the datasets. |
java.lang.String[] |
getOptions()
Gets the current settings of the CheckClassifier. |
CheckClassifier.PostProcessor |
getPostProcessor()
returns the current PostProcessor, can be null |
boolean |
getSilent()
Get whether silent mode is turned on |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options. |
static void |
main(java.lang.String[] args)
Test method for this class |
void |
setClassifier(Classifier newClassifier)
Set the classifier for boosting. |
void |
setDebug(boolean debug)
Set debugging mode |
void |
setNumInstances(int value)
Sets the number of instances to use in the datasets (some classifiers might require more instances). |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
void |
setPostProcessor(CheckClassifier.PostProcessor value)
sets the PostProcessor to use |
void |
setSilent(boolean value)
Set slient mode, i.e., no output at all to stdout |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckClassifier()
Method Detail |
---|
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface OptionHandler
options
- the list of options as an array of strings
java.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public void setPostProcessor(CheckClassifier.PostProcessor value)
value
- the new PostProcessorm_PostProcessor
public CheckClassifier.PostProcessor getPostProcessor()
public void doTests()
public void setDebug(boolean debug)
debug
- true if debug output should be printedpublic boolean getDebug()
public void setSilent(boolean value)
value
- whether silent mode is active or notpublic boolean getSilent()
public void setNumInstances(int value)
value
- the number of instances to usepublic int getNumInstances()
public void setClassifier(Classifier newClassifier)
newClassifier
- the Classifier to use.public Classifier getClassifier()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |