类 FilteredAssociator

所有已实现的接口:
Serializable, Cloneable, Associator, CapabilitiesHandler, OptionHandler, RevisionHandler

public class FilteredAssociator extends SingleAssociatorEnhancer
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)
另请参阅:
  • 构造器详细资料

    • FilteredAssociator

      public FilteredAssociator()
      Default constructor.
  • 方法详细资料

    • globalInfo

      public String globalInfo()
      Returns a string describing this Associator
      返回:
      a description of the Associator suitable for displaying in the explorer/experimenter gui
    • listOptions

      public Enumeration listOptions()
      Returns an enumeration describing the available options.
      指定者:
      listOptions 在接口中 OptionHandler
      覆盖:
      listOptions 在类中 SingleAssociatorEnhancer
      返回:
      an enumeration of all the available options.
    • setOptions

      public void setOptions(String[] options) throws Exception
      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

      public String[] getOptions()
      Gets the current settings of the Associator.
      指定者:
      getOptions 在接口中 OptionHandler
      覆盖:
      getOptions 在类中 SingleAssociatorEnhancer
      返回:
      an array of strings suitable for passing to setOptions
    • filterTipText

      public String filterTipText()
      Returns the tip text for this property
      返回:
      tip text for this property suitable for displaying in the explorer/experimenter gui
    • setFilter

      public void setFilter(Filter value)
      Sets the filter
      参数:
      value - the filter with all options set.
    • getFilter

      public Filter getFilter()
      Gets the filter used.
      返回:
      the current filter
    • classIndexTipText

      public String 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

      public Capabilities getCapabilities()
      Returns default capabilities of the associator.
      指定者:
      getCapabilities 在接口中 Associator
      指定者:
      getCapabilities 在接口中 CapabilitiesHandler
      覆盖:
      getCapabilities 在类中 SingleAssociatorEnhancer
      返回:
      the capabilities of this associator
      另请参阅:
    • buildAssociations

      public void buildAssociations(Instances data) throws Exception
      Build the associator on the filtered data.
      参数:
      data - the training data
      抛出:
      Exception - if the Associator could not be built successfully
    • toString

      public String toString()
      Output a representation of this associator
      覆盖:
      toString 在类中 Object
      返回:
      a representation of this associator
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      覆盖:
      getRevision 在类中 AbstractAssociator
      返回:
      the revision
    • main

      public static void main(String[] args)
      Main method for running this class.
      参数:
      args - commandline arguments, use "-h" for full list