类 FilteredSubsetEval

java.lang.Object
weka.attributeSelection.ASEvaluation
weka.attributeSelection.FilteredSubsetEval
所有已实现的接口:
Serializable, SubsetEvaluator, CapabilitiesHandler, OptionHandler, RevisionHandler

public class FilteredSubsetEval extends ASEvaluation implements Serializable, SubsetEvaluator, OptionHandler
Class for running an arbitrary subset evaluator on data that has been passed through an arbitrary filter (note: filters that alter the order or number of attributes are not allowed). Like the evaluator, the structure of the filter is based exclusively on the training data.

Valid options are:

 -W <evaluator specification>
  Full name of base evaluator to use, followed by evaluator options.
  eg: "weka.attributeSelection.CfsSubsetEval -L"
 -F <filter specification>
  Full class name of filter to use, followed
  by filter options.
  eg: "weka.filters.supervised.instance.SpreadSubsample -M 1"
版本:
$Revision: 5562 $
作者:
Mark Hall (mhall{[at]}pentaho{[dot]}com)
另请参阅:
  • 构造器详细资料

    • FilteredSubsetEval

      public FilteredSubsetEval()
  • 方法详细资料

    • getCapabilities

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

      public String globalInfo()
      返回:
      a description of the evaluator suitable for displaying in the explorer/experimenter gui
    • listOptions

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

      public void setOptions(String[] options) throws Exception
      Parses a given list of options.

      Valid options are:

       -W <evaluator specification>
        Full name of base evaluator to use, followed by evaluator options.
        eg: "weka.attributeSelection.CfsSubsetEval -L"
       -F <filter specification>
        Full class name of filter to use, followed
        by filter options.
        eg: "weka.filters.supervised.instance.SpreadSubsample -M 1"
      指定者:
      setOptions 在接口中 OptionHandler
      参数:
      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 subset evaluator.
      指定者:
      getOptions 在接口中 OptionHandler
      返回:
      an array of strings suitable for passing to setOptions
    • subsetEvaluatorTipText

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

      public void setSubsetEvaluator(ASEvaluation newEvaluator)
      Set the subset evaluator to use
      参数:
      newEvaluator - the subset evaluator to use
    • getSubsetEvaluator

      public ASEvaluation getSubsetEvaluator()
      Get the subset evaluator to use
      返回:
      the subset evaluator to use
    • 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 newFilter)
      Set the filter to use
      参数:
      newFilter - the filter to use
    • getFilter

      public Filter getFilter()
      Get the filter to use
      返回:
      the filter to use
    • getRevision

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

      public void buildEvaluator(Instances data) throws Exception
      Initializes a filtered attribute evaluator.
      指定者:
      buildEvaluator 在类中 ASEvaluation
      参数:
      data - set of instances serving as training data
      抛出:
      Exception - if the evaluator has not been generated successfully
    • evaluateSubset

      public double evaluateSubset(BitSet subset) throws Exception
      evaluates a subset of attributes
      指定者:
      evaluateSubset 在接口中 SubsetEvaluator
      参数:
      subset - a bitset representing the attribute subset to be evaluated
      返回:
      the "merit" of the subset
      抛出:
      Exception - if the subset could not be evaluated
    • toString

      public String toString()
      Describe the attribute evaluator
      覆盖:
      toString 在类中 Object
      返回:
      a description of the attribute evaluator as a string
    • main

      public static void main(String[] args)
      Main method for testing this class.
      参数:
      args - the options