类 FilteredAssociator
java.lang.Object
weka.associations.AbstractAssociator
weka.associations.SingleAssociatorEnhancer
weka.associations.FilteredAssociator
- 所有已实现的接口:
Serializable
,Cloneable
,Associator
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
Class for running an arbitrary associator on data that has been passed through an arbitrary filter. Like the associator, 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.MultiFilter with weka.filters.unsupervised.attribute.ReplaceMissingValues)
-c <the class index> The class index. (default: -1, i.e. unset)
-W Full name of base associator. (default: weka.associations.Apriori)
Options specific to associator weka.associations.Apriori:
-N <required number of rules output> The required number of rules. (default = 10)
-T <0=confidence | 1=lift | 2=leverage | 3=Conviction> The metric type by which to rank rules. (default = confidence)
-C <minimum metric score of a rule> The minimum confidence of a rule. (default = 0.9)
-D <delta for minimum support> The delta by which the minimum support is decreased in each iteration. (default = 0.05)
-U <upper bound for minimum support> Upper bound for minimum support. (default = 1.0)
-M <lower bound for minimum support> The lower bound for the minimum support. (default = 0.1)
-S <significance level> If used, rules are tested for significance at the given level. Slower. (default = no significance testing)
-I If set the itemsets found are also output. (default = no)
-R Remove columns that contain all missing values (default = no)
-V Report progress iteratively. (default = no)
-A If set class association rules are mined. (default = no)
-c <the class index> The class index. (default = last)
- 版本:
- $Revision: 5504 $
- 作者:
- Len Trigg (trigg@cs.waikato.ac.nz), FracPete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildAssociations
(Instances data) Build the associator on the filtered data.Returns the tip text for this propertyReturns the tip text for this propertyReturns default capabilities of the associator.int
Gets the class indexGets the filter used.String[]
Gets the current settings of the Associator.Returns the revision string.Returns a string describing this AssociatorReturns an enumeration describing the available options.static void
Main method for running this class.void
setClassIndex
(int value) Sets the class indexvoid
Sets the filtervoid
setOptions
(String[] options) Parses a given list of options.toString()
Output a representation of this associator从类继承的方法 weka.associations.SingleAssociatorEnhancer
associatorTipText, getAssociator, setAssociator
从类继承的方法 weka.associations.AbstractAssociator
forName, makeCopies, makeCopy
-
构造器详细资料
-
FilteredAssociator
public FilteredAssociator()Default constructor.
-
-
方法详细资料
-
globalInfo
Returns a string describing this Associator- 返回:
- a description of the Associator suitable for displaying in the explorer/experimenter gui
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中SingleAssociatorEnhancer
- 返回:
- 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.MultiFilter with weka.filters.unsupervised.attribute.ReplaceMissingValues)
-c <the class index> The class index. (default: -1, i.e. unset)
-W Full name of base associator. (default: weka.associations.Apriori)
Options specific to associator weka.associations.Apriori:
-N <required number of rules output> The required number of rules. (default = 10)
-T <0=confidence | 1=lift | 2=leverage | 3=Conviction> The metric type by which to rank rules. (default = confidence)
-C <minimum metric score of a rule> The minimum confidence of a rule. (default = 0.9)
-D <delta for minimum support> The delta by which the minimum support is decreased in each iteration. (default = 0.05)
-U <upper bound for minimum support> Upper bound for minimum support. (default = 1.0)
-M <lower bound for minimum support> The lower bound for the minimum support. (default = 0.1)
-S <significance level> If used, rules are tested for significance at the given level. Slower. (default = no significance testing)
-I If set the itemsets found are also output. (default = no)
-R Remove columns that contain all missing values (default = no)
-V Report progress iteratively. (default = no)
-A If set class association rules are mined. (default = no)
-c <the class index> The class index. (default = last)
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中SingleAssociatorEnhancer
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of the Associator.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中SingleAssociatorEnhancer
- 返回:
- 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- 参数:
value
- the filter with all options set.
-
getFilter
Gets the filter used.- 返回:
- the current filter
-
classIndexTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setClassIndex
public void setClassIndex(int value) Sets the class index- 参数:
value
- the class index
-
getClassIndex
public int getClassIndex()Gets the class index- 返回:
- the index of the class attribute
-
getCapabilities
Returns default capabilities of the associator.- 指定者:
getCapabilities
在接口中Associator
- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中SingleAssociatorEnhancer
- 返回:
- the capabilities of this associator
- 另请参阅:
-
buildAssociations
Build the associator on the filtered data.- 参数:
data
- the training data- 抛出:
Exception
- if the Associator could not be built successfully
-
toString
Output a representation of this associator -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中AbstractAssociator
- 返回:
- the revision
-
main
Main method for running this class.- 参数:
args
- commandline arguments, use "-h" for full list
-