|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.Check
weka.core.CheckScheme
weka.classifiers.functions.supportVector.CheckKernel
public class CheckKernel
Class for examining the capabilities and finding problems with kernels. If you implement an kernels 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 kernels don't exist, but this will help find some common ones.
Typical usage:java weka.classifiers.functions.supportVector.CheckKernel -W kernel_name
-- kernel_options
CheckKernel reports on the following:
weka.classifiers.AbstractKernelTest uses this
class to test all the kernels. Any changes here, have to be
checked in that abstract test class, too.
Valid options are:
-D Turn on debugging output.
-S Silent mode - prints nothing to stdout.
-N <num> The number of instances in the datasets (default 20).
-nominal <num> The number of nominal attributes (default 2).
-nominal-values <num> The number of values for nominal attributes (default 1).
-numeric <num> The number of numeric attributes (default 1).
-string <num> The number of string attributes (default 1).
-date <num> The number of date attributes (default 1).
-relational <num> The number of relational attributes (default 1).
-num-instances-relational <num> The number of instances in relational/bag attributes (default 10).
-words <comma-separated-list> The words to use in string attributes.
-word-separators <chars> The word separators to use in string attributes.
-W Full name of the kernel analysed. eg: weka.classifiers.functions.supportVector.RBFKernel (default weka.classifiers.functions.supportVector.RBFKernel)
Options specific to kernel weka.classifiers.functions.supportVector.RBFKernel:
-D Enables debugging output (if available) to be printed. (default: off)
-no-checks Turns off all checks - use with caution! (default: checks on)
-C <num> The size of the cache (a prime number), 0 for full cache and -1 to turn it off. (default: 250007)
-G <num> The Gamma parameter. (default: 0.01)Options after -- are passed to the designated kernel.
TestInstances| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class weka.core.CheckScheme |
|---|
CheckScheme.PostProcessor |
| Constructor Summary | |
|---|---|
CheckKernel()
|
|
| Method Summary | |
|---|---|
void |
doTests()
Begin the tests, reporting results to System.out |
Kernel |
getKernel()
Get the kernel being tested |
java.lang.String[] |
getOptions()
Gets the current settings of the CheckKernel. |
java.lang.String |
getRevision()
Returns the revision string. |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options. |
static void |
main(java.lang.String[] args)
Test method for this class |
void |
setKernel(Kernel value)
Set the lernel to test. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
| Methods inherited from class weka.core.Check |
|---|
getDebug, getSilent, setDebug, setSilent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CheckKernel()
| Method Detail |
|---|
public java.util.Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class CheckScheme
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
-D Turn on debugging output.
-S Silent mode - prints nothing to stdout.
-N <num> The number of instances in the datasets (default 20).
-nominal <num> The number of nominal attributes (default 2).
-nominal-values <num> The number of values for nominal attributes (default 1).
-numeric <num> The number of numeric attributes (default 1).
-string <num> The number of string attributes (default 1).
-date <num> The number of date attributes (default 1).
-relational <num> The number of relational attributes (default 1).
-num-instances-relational <num> The number of instances in relational/bag attributes (default 10).
-words <comma-separated-list> The words to use in string attributes.
-word-separators <chars> The word separators to use in string attributes.
-W Full name of the kernel analysed. eg: weka.classifiers.functions.supportVector.RBFKernel (default weka.classifiers.functions.supportVector.RBFKernel)
Options specific to kernel weka.classifiers.functions.supportVector.RBFKernel:
-D Enables debugging output (if available) to be printed. (default: off)
-no-checks Turns off all checks - use with caution! (default: checks on)
-C <num> The size of the cache (a prime number), 0 for full cache and -1 to turn it off. (default: 250007)
-G <num> The Gamma parameter. (default: 0.01)
setOptions in interface OptionHandlersetOptions in class CheckSchemeoptions - 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 OptionHandlergetOptions in class CheckSchemepublic void doTests()
doTests in class CheckSchemepublic void setKernel(Kernel value)
value - the kernel to use.public Kernel getKernel()
public java.lang.String getRevision()
public static void main(java.lang.String[] args)
args - the commandline parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||