public class DensityBasedClustererSplitEvaluator extends Object implements SplitEvaluator, OptionHandler, AdditionalMeasureProducer, RevisionHandler
-no-size Skips the determination of sizes (train/test/clusterer) (default: sizes are determined)
-W <class name> The full class name of the density based clusterer. eg: weka.clusterers.EM
Options specific to clusterer weka.clusterers.EM:
-N <num> number of clusters. If omitted or -1 specified, then cross validation is used to select the number of clusters.
-I <num> max iterations. (default 100)
-V verbose.
-M <num> minimum allowable standard deviation for normal density computation (default 1e-6)
-O Display model in old format (good when there are many clusters)
-S <num> Random number seed. (default 100)All options after -- will be passed to the clusterer.
Constructor and Description |
---|
DensityBasedClustererSplitEvaluator() |
Modifier and Type | Method and Description |
---|---|
String |
clustererTipText()
Returns the tip text for this property
|
Enumeration |
enumerateMeasures()
Returns an enumeration of any additional measure names that might be
in the classifier
|
DensityBasedClusterer |
getClusterer()
Get the value of clusterer
|
Object[] |
getKey()
Gets the key describing the current SplitEvaluator.
|
String[] |
getKeyNames()
Gets the names of each of the key columns produced for a single run.
|
Object[] |
getKeyTypes()
Gets the data types of each of the key columns produced for a single run.
|
double |
getMeasure(String additionalMeasureName)
Returns the value of the named measure
|
boolean |
getNoSizeDetermination()
Returns whether the size determination (train/test/clusterer) is skipped.
|
String[] |
getOptions()
Gets the current settings of the Classifier.
|
String |
getRawResultOutput()
Gets the raw output from the classifier
|
boolean |
getRemoveClassColumn()
Get whether the class column is to be removed.
|
Object[] |
getResult(Instances train,
Instances test)
Gets the results for the supplied train and test datasets.
|
String[] |
getResultNames()
Gets the names of each of the result columns produced for a single run.
|
Object[] |
getResultTypes()
Gets the data types of each of the result columns produced for a
single run.
|
String |
getRevision()
Returns the revision string.
|
String |
globalInfo()
Returns a string describing this split evaluator
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
String |
noSizeDeterminationTipText()
Returns the tip text for this property
|
String |
removeClassColumnTipText()
Returns the tip text for this property
|
void |
setAdditionalMeasures(String[] additionalMeasures)
Set a list of method names for additional measures to look for
in Classifiers.
|
void |
setClusterer(DensityBasedClusterer newClusterer)
Sets the clusterer.
|
void |
setClustererName(String newClustererName)
Set the Clusterer to use, given it's class name.
|
void |
setNoSizeDetermination(boolean value)
Sets whether the size determination (train/test/clusterer) is skipped.
|
void |
setOptions(String[] options)
Parses a given list of options.
|
void |
setRemoveClassColumn(boolean r)
Set whether the class column should be removed from the data.
|
String |
toString()
Returns a text description of the split evaluator.
|
public String globalInfo()
public Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(String[] options) throws Exception
-W classname
Specify the full class name of the clusterer to evaluate.
All option after -- will be passed to the classifier.
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsException
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
public void setAdditionalMeasures(String[] additionalMeasures)
setAdditionalMeasures
in interface SplitEvaluator
additionalMeasures
- a list of method namespublic Enumeration enumerateMeasures()
enumerateMeasures
in interface AdditionalMeasureProducer
public double getMeasure(String additionalMeasureName)
getMeasure
in interface AdditionalMeasureProducer
additionalMeasureName
- the name of the measure to query for its valueIllegalArgumentException
- if the named measure is not supportedpublic Object[] getKeyTypes()
getKeyTypes
in interface SplitEvaluator
public String[] getKeyNames()
getKeyNames
in interface SplitEvaluator
public Object[] getKey()
getKey
in interface SplitEvaluator
public Object[] getResultTypes()
getResultTypes
in interface SplitEvaluator
public String[] getResultNames()
getResultNames
in interface SplitEvaluator
public Object[] getResult(Instances train, Instances test) throws Exception
getResult
in interface SplitEvaluator
train
- the training Instances.test
- the testing Instances.Exception
- if a problem occurs while getting the resultspublic String removeClassColumnTipText()
public void setRemoveClassColumn(boolean r)
r
- true if the class column is to be removed.public boolean getRemoveClassColumn()
public String clustererTipText()
public DensityBasedClusterer getClusterer()
public void setClusterer(DensityBasedClusterer newClusterer)
newClusterer
- the new clusterer to use.public boolean getNoSizeDetermination()
public void setNoSizeDetermination(boolean value)
value
- true if to determine sizespublic String noSizeDeterminationTipText()
public void setClustererName(String newClustererName) throws Exception
newClustererName
- the clusterer class name.Exception
- if the class name is invalid.public String getRawResultOutput()
getRawResultOutput
in interface SplitEvaluator
public String toString()
public String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.