程序包 weka.classifiers

类 IteratedSingleClassifierEnhancer

所有已实现的接口:
Serializable, Cloneable, CapabilitiesHandler, OptionHandler, RevisionHandler
直接已知子类:
AdditiveRegression, RandomizableIteratedSingleClassifierEnhancer

public abstract class IteratedSingleClassifierEnhancer extends SingleClassifierEnhancer
Abstract utility class for handling settings common to meta classifiers that build an ensemble from a single base learner.
版本:
$Revision: 1.4 $
作者:
Eibe Frank (eibe@cs.waikato.ac.nz)
另请参阅:
  • 构造器详细资料

    • IteratedSingleClassifierEnhancer

      public IteratedSingleClassifierEnhancer()
  • 方法详细资料

    • buildClassifier

      public void buildClassifier(Instances data) throws Exception
      Stump method for building the classifiers.
      指定者:
      buildClassifier 在类中 Classifier
      参数:
      data - the training data to be used for generating the bagged classifier.
      抛出:
      Exception - if the classifier could not be built successfully
    • listOptions

      public Enumeration listOptions()
      Returns an enumeration describing the available options.
      指定者:
      listOptions 在接口中 OptionHandler
      覆盖:
      listOptions 在类中 SingleClassifierEnhancer
      返回:
      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 classname
      Specify the full class name of the base learner.

      -I num
      Set the number of iterations (default 10).

      Options after -- are passed to the designated classifier.

      指定者:
      setOptions 在接口中 OptionHandler
      覆盖:
      setOptions 在类中 SingleClassifierEnhancer
      参数:
      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 classifier.
      指定者:
      getOptions 在接口中 OptionHandler
      覆盖:
      getOptions 在类中 SingleClassifierEnhancer
      返回:
      an array of strings suitable for passing to setOptions
    • numIterationsTipText

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

      public void setNumIterations(int numIterations)
      Sets the number of bagging iterations
    • getNumIterations

      public int getNumIterations()
      Gets the number of bagging iterations
      返回:
      the maximum number of bagging iterations