程序包 weka.clusterers
类 FilteredClusterer
java.lang.Object
weka.clusterers.AbstractClusterer
weka.clusterers.SingleClustererEnhancer
weka.clusterers.FilteredClusterer
- 所有已实现的接口:
Serializable
,Cloneable
,Clusterer
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
Class for running an arbitrary clusterer on data that has been passed through an arbitrary filter. Like the clusterer, the structure of the filter is based exclusively on the training data and test instances will be processed by the filter without changing their structure.
Valid options are:
-F <filter specification> Full class name of filter to use, followed by filter options. eg: "weka.filters.unsupervised.attribute.Remove -V -R 1,2" (default: weka.filters.AllFilter)
-W Full name of base clusterer. (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)Based on code from the FilteredClassifier by Len Trigg.
- 版本:
- $Revision: 5538 $
- 作者:
- Len Trigg (trigg@cs.waikato.ac.nz), FracPete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildClusterer
(Instances data) Build the clusterer on the filtered data.double[]
distributionForInstance
(Instance instance) Classifies a given instance after filtering.Returns the tip text for this property.Returns default capabilities of the clusterer.Gets the filter used.String[]
Gets the current settings of the clusterer.Returns the revision string.Returns a string describing this clusterer.Returns an enumeration describing the available options.static void
Main method for testing this class.void
Sets the filter.void
setOptions
(String[] options) Parses a given list of options.toString()
Output a representation of this clusterer.从类继承的方法 weka.clusterers.SingleClustererEnhancer
clustererTipText, getClusterer, numberOfClusters, setClusterer
从类继承的方法 weka.clusterers.AbstractClusterer
clusterInstance, forName, makeCopies, makeCopy
-
构造器详细资料
-
FilteredClusterer
public FilteredClusterer()Default constructor.
-
-
方法详细资料
-
globalInfo
Returns a string describing this clusterer.- 返回:
- a description of the clusterer suitable for displaying in the explorer/experimenter gui
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中SingleClustererEnhancer
- 返回:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options. Valid options are:-F <filter specification> Full class name of filter to use, followed by filter options. eg: "weka.filters.unsupervised.attribute.Remove -V -R 1,2" (default: weka.filters.AllFilter)
-W Full name of base clusterer. (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
在接口中OptionHandler
- 覆盖:
setOptions
在类中SingleClustererEnhancer
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of the clusterer.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中SingleClustererEnhancer
- 返回:
- an array of strings suitable for passing to setOptions
-
filterTipText
Returns the tip text for this property.- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setFilter
Sets the filter.- 参数:
filter
- the filter with all options set.
-
getFilter
Gets the filter used.- 返回:
- the filter
-
getCapabilities
Returns default capabilities of the clusterer.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 指定者:
getCapabilities
在接口中Clusterer
- 覆盖:
getCapabilities
在类中SingleClustererEnhancer
- 返回:
- the capabilities of this clusterer
- 另请参阅:
-
buildClusterer
Build the clusterer on the filtered data.- 指定者:
buildClusterer
在接口中Clusterer
- 指定者:
buildClusterer
在类中AbstractClusterer
- 参数:
data
- the training data- 抛出:
Exception
- if the clusterer could not be built successfully
-
distributionForInstance
Classifies a given instance after filtering.- 指定者:
distributionForInstance
在接口中Clusterer
- 覆盖:
distributionForInstance
在类中AbstractClusterer
- 参数:
instance
- the instance to be classified- 返回:
- the class distribution for the given instance
- 抛出:
Exception
- if instance could not be classified successfully
-
toString
Output a representation of this clusterer. -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中AbstractClusterer
- 返回:
- the revision
-
main
Main method for testing this class.- 参数:
args
- the commandline options, use "-h" for help
-