程序包 weka.core
类 CheckOptionHandler
java.lang.Object
weka.core.Check
weka.core.CheckOptionHandler
- 所有已实现的接口:
OptionHandler
,RevisionHandler
Simple command line checking of classes that implement OptionHandler.
Usage:
CheckOptionHandler -W optionHandlerClassName -- test options
Valid options are:
-D Turn on debugging output.
-S Silent mode - prints nothing to stdout.
-W Full name of the OptionHandler analysed. eg: weka.classifiers.rules.ZeroR (default weka.classifiers.rules.ZeroR)
Options specific to option handler weka.classifiers.rules.ZeroR:
-D If set, classifier is run in debug mode and may output additional info to the consoleOptions after -- are used as user options in testing the OptionHandler
- 版本:
- $Revision: 1.13 $
- 作者:
- Len Trigg (trigg@cs.waikato.ac.nz), FracPete (fracpete at waikato dot ac dot nz)
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
checks whether the user-supplied options stay the same after settting, getting and re-setting againboolean
checks whether the default options can be processed completely or some invalid options are returned by the getOptions() method.boolean
checks whether the listOptions method worksboolean
checks whether the user-supplied options can be processed completely or some "left-over" options remainboolean
checks whether the optionhandler can be re-setted again to default options after the user-supplied options have been set.boolean
checks whether the user-supplied options can be processed at allvoid
doTests()
Runs some diagnostic tests on an optionhandler object.Get the OptionHandler used in the tests.String[]
Gets the current settings of the CheckClassifier.Returns the revision string.boolean
returns the success of the testsString[]
Gets the current user-supplied options (creates a copy)Returns an enumeration describing the available options.static void
Main method for using the CheckOptionHandler.void
setOptionHandler
(OptionHandler value) Set the OptionHandler to work on..void
setOptions
(String[] options) Parses a given list of options.void
setUserOptions
(String[] value) Sets the user-supplied options (creates a copy)
-
构造器详细资料
-
CheckOptionHandler
public CheckOptionHandler()
-
-
方法详细资料
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中Check
- 返回:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options. Valid options are:-D Turn on debugging output.
-S Silent mode - prints nothing to stdout.
-W Full name of the OptionHandler analysed. eg: weka.classifiers.rules.ZeroR (default weka.classifiers.rules.ZeroR)
Options specific to option handler weka.classifiers.rules.ZeroR:
-D If set, classifier is run in debug mode and may output additional info to the console
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中Check
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of the CheckClassifier.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中Check
- 返回:
- an array of strings suitable for passing to setOptions
-
setOptionHandler
Set the OptionHandler to work on..- 参数:
value
- the OptionHandler to use.
-
getOptionHandler
Get the OptionHandler used in the tests.- 返回:
- the OptionHandler used in the tests.
-
setUserOptions
Sets the user-supplied options (creates a copy)- 参数:
value
- the user-supplied options to use
-
getUserOptions
Gets the current user-supplied options (creates a copy)- 返回:
- the user-supplied options
-
getSuccess
public boolean getSuccess()returns the success of the tests- 返回:
- true if the tests were successful
-
checkListOptions
public boolean checkListOptions()checks whether the listOptions method works- 返回:
- index 0 is true if the test was passed, index 1 is always false
-
checkSetOptions
public boolean checkSetOptions()checks whether the user-supplied options can be processed at all- 返回:
- index 0 is true if the test was passed, index 1 is always false
-
checkDefaultOptions
public boolean checkDefaultOptions()checks whether the default options can be processed completely or some invalid options are returned by the getOptions() method.- 返回:
- index 0 is true if the test was passed, index 1 is always false
-
checkRemainingOptions
public boolean checkRemainingOptions()checks whether the user-supplied options can be processed completely or some "left-over" options remain- 返回:
- index 0 is true if the test was passed, index 1 is always false
-
checkCanonicalUserOptions
public boolean checkCanonicalUserOptions()checks whether the user-supplied options stay the same after settting, getting and re-setting again- 返回:
- index 0 is true if the test was passed, index 1 is always false
-
checkResettingOptions
public boolean checkResettingOptions()checks whether the optionhandler can be re-setted again to default options after the user-supplied options have been set.- 返回:
- index 0 is true if the test was passed, index 1 is always false
-
doTests
public void doTests()Runs some diagnostic tests on an optionhandler object. Output is printed to System.out (if not silent). -
getRevision
Returns the revision string.- 返回:
- the revision
-
main
Main method for using the CheckOptionHandler.- 参数:
args
- the options to the CheckOptionHandler
-