public class CheckClusterer extends CheckScheme
java weka.clusterers.CheckClusterer -W clusterer_name
-- clusterer_options
CheckClusterer reports on the following:
weka.clusterers.AbstractClustererTest
uses this
class to test all the clusterers. 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 clusterer analyzed. eg: weka.clusterers.SimpleKMeans (default weka.clusterers.SimpleKMeans)
Options specific to clusterer weka.clusterers.SimpleKMeans:
-N <num> number of clusters. (default 2).
-V Display std. deviations for centroids.
-M Replace missing values with mean/mode.
-S <num> Random number seed. (default 10)Options after -- are passed to the designated clusterer.
TestInstances
CheckScheme.PostProcessor
Constructor and Description |
---|
CheckClusterer()
default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
doTests()
Begin the tests, reporting results to System.out
|
Clusterer |
getClusterer()
Get the clusterer used as the clusterer
|
java.lang.String[] |
getOptions()
Gets the current settings of the CheckClusterer.
|
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 |
setClusterer(Clusterer newClusterer)
Set the clusterer for testing.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
attributeTypeToString, getNumDate, getNumInstances, getNumInstancesRelational, getNumNominal, getNumNumeric, getNumRelational, getNumString, getPostProcessor, getWords, getWordSeparators, hasClasspathProblems, setNumDate, setNumInstances, setNumInstancesRelational, setNumNominal, setNumNumeric, setNumRelational, setNumString, setPostProcessor, setWords, setWordSeparators
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
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 clusterer analyzed. eg: weka.clusterers.SimpleKMeans (default weka.clusterers.SimpleKMeans)
Options specific to clusterer weka.clusterers.SimpleKMeans:
-N <num> number of clusters. (default 2).
-V Display std. deviations for centroids.
-M Replace missing values with mean/mode.
-S <num> Random number seed. (default 10)
setOptions
in interface OptionHandler
setOptions
in class CheckScheme
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class CheckScheme
public void doTests()
doTests
in class CheckScheme
public void setClusterer(Clusterer newClusterer)
newClusterer
- the Clusterer to use.public Clusterer getClusterer()
public java.lang.String getRevision()
public static void main(java.lang.String[] args)
args
- the commandline options