public abstract class CheckScheme extends Check
TestInstances
Modifier and Type | Class and Description |
---|---|
static class |
CheckScheme.PostProcessor
a class for postprocessing the test-data
|
Constructor and Description |
---|
CheckScheme() |
Modifier and Type | Method and Description |
---|---|
static String |
attributeTypeToString(int type)
returns a string representation of the attribute type
|
abstract void |
doTests()
Begin the tests, reporting results to System.out
|
int |
getNumDate()
returns the current number of date attributes
|
int |
getNumInstances()
Gets the current number of instances to use for the datasets.
|
int |
getNumInstancesRelational()
returns the current number of instances in relational/bag attributes to produce
|
int |
getNumNominal()
returns the current number of nominal attributes
|
int |
getNumNumeric()
returns the current number of numeric attributes
|
int |
getNumRelational()
returns the current number of relational attributes
|
int |
getNumString()
returns the current number of string attributes
|
String[] |
getOptions()
Gets the current settings of the CheckClassifier.
|
CheckScheme.PostProcessor |
getPostProcessor()
returns the current PostProcessor, can be null
|
String |
getWords()
returns the words used for assembling strings in a comma-separated list.
|
String |
getWordSeparators()
returns the word separators (chars) to use for assembling strings.
|
boolean |
hasClasspathProblems()
returns TRUE if the classifier returned a "not in classpath" Exception
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
void |
setNumDate(int value)
sets the number of data attributes
|
void |
setNumInstances(int value)
Sets the number of instances to use in the datasets (some classifiers
might require more instances).
|
void |
setNumInstancesRelational(int value)
sets the number of instances in relational/bag attributes to produce
|
void |
setNumNominal(int value)
sets the number of nominal attributes
|
void |
setNumNumeric(int value)
sets the number of numeric attributes
|
void |
setNumRelational(int value)
sets the number of relational attributes
|
void |
setNumString(int value)
sets the number of string attributes
|
void |
setOptions(String[] options)
Parses a given list of options.
|
void |
setPostProcessor(CheckScheme.PostProcessor value)
sets the PostProcessor to use
|
void |
setWords(String value)
Sets the comma-separated list of words to use for generating strings.
|
void |
setWordSeparators(String value)
sets the word separators (chars) to use for assembling strings.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRevision
public Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class Check
public void setOptions(String[] options) throws Exception
setOptions
in interface OptionHandler
setOptions
in class Check
options
- the list of options as an array of stringsException
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class Check
public void setPostProcessor(CheckScheme.PostProcessor value)
value
- the new PostProcessorm_PostProcessor
public CheckScheme.PostProcessor getPostProcessor()
public boolean hasClasspathProblems()
public abstract void doTests()
public void setNumInstances(int value)
value
- the number of instances to usepublic int getNumInstances()
public void setNumNominal(int value)
value
- the number of nominal attributespublic int getNumNominal()
public void setNumNumeric(int value)
value
- the number of numeric attributespublic int getNumNumeric()
public void setNumString(int value)
value
- the number of string attributespublic int getNumString()
public void setNumDate(int value)
value
- the number of date attributespublic int getNumDate()
public void setNumRelational(int value)
value
- the number of relational attributespublic int getNumRelational()
public void setNumInstancesRelational(int value)
value
- the number of instancespublic int getNumInstancesRelational()
public static String attributeTypeToString(int type)
type
- the attribute type to get a string rerpresentation forpublic void setWords(String value)
value
- the list of wordsIllegalArgumentException
- if not at least 2 words are providedpublic String getWords()
public void setWordSeparators(String value)
value
- the characters to use as separatorspublic String getWordSeparators()
Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.