Package weka.clusterers
Class SingleClustererEnhancer
java.lang.Object
weka.clusterers.AbstractClusterer
weka.clusterers.SingleClustererEnhancer
- All Implemented Interfaces:
Serializable,Cloneable,Clusterer,CapabilitiesHandler,CapabilitiesIgnorer,CommandlineRunnable,OptionHandler,RevisionHandler
- Direct Known Subclasses:
FilteredClusterer
Meta-clusterer for enhancing a base clusterer.
- Version:
- $Revision: 15520 $
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the tip text for this propertyReturns default capabilities of the clusterer.Get the clusterer used as the base clusterer.String[]Gets the current settings of the clusterer.Returns an enumeration describing the available options.intReturns the number of clusters.voidsetClusterer(Clusterer value) Set the base clusterer.voidsetOptions(String[] options) Parses a given list of options.Methods inherited from class weka.clusterers.AbstractClusterer
buildClusterer, clusterInstance, debugTipText, distributionForInstance, doNotCheckCapabilitiesTipText, forName, getDebug, getDoNotCheckCapabilities, getRevision, makeCopies, makeCopy, postExecution, preExecution, run, runClusterer, setDebug, setDoNotCheckCapabilities
-
Constructor Details
-
SingleClustererEnhancer
public SingleClustererEnhancer()
-
-
Method Details
-
listOptions
Returns an enumeration describing the available options.- Specified by:
listOptionsin interfaceOptionHandler- Overrides:
listOptionsin classAbstractClusterer- Returns:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options.- Specified by:
setOptionsin interfaceOptionHandler- Overrides:
setOptionsin classAbstractClusterer- Parameters:
options- the list of options as an array of strings- Throws:
Exception- if an option is not supported
-
getOptions
Gets the current settings of the clusterer.- Specified by:
getOptionsin interfaceOptionHandler- Overrides:
getOptionsin classAbstractClusterer- Returns:
- an array of strings suitable for passing to setOptions
-
clustererTipText
Returns the tip text for this property- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setClusterer
Set the base clusterer.- Parameters:
value- the classifier to use.
-
getClusterer
Get the clusterer used as the base clusterer.- Returns:
- the base clusterer
-
getCapabilities
Returns default capabilities of the clusterer.- Specified by:
getCapabilitiesin interfaceCapabilitiesHandler- Specified by:
getCapabilitiesin interfaceClusterer- Overrides:
getCapabilitiesin classAbstractClusterer- Returns:
- the capabilities of this clusterer
- See Also:
-
numberOfClusters
Returns the number of clusters.- Specified by:
numberOfClustersin interfaceClusterer- Specified by:
numberOfClustersin classAbstractClusterer- Returns:
- the number of clusters generated for a training dataset.
- Throws:
Exception- if number of clusters could not be returned successfully
-