类 MILR

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

public class MILR extends Classifier implements OptionHandler, MultiInstanceCapabilitiesHandler
Uses either standard or collective multi-instance assumption, but within linear regression. For the collective assumption, it offers arithmetic or geometric mean for the posteriors.

Valid options are:

 -D
  Turn on debugging output.
 -R <ridge>
  Set the ridge in the log-likelihood.
 -A [0|1|2]
  Defines the type of algorithm:
   0. standard MI assumption
   1. collective MI assumption, arithmetic mean for posteriors
   2. collective MI assumption, geometric mean for posteriors
版本:
$Revision: 9144 $
作者:
Eibe Frank (eibe@cs.waikato.ac.nz), Xin Xu (xx5@cs.waikato.ac.nz)
另请参阅:
  • 字段详细资料

    • ALGORITHMTYPE_DEFAULT

      public static final int ALGORITHMTYPE_DEFAULT
      standard MI assumption
      另请参阅:
    • ALGORITHMTYPE_ARITHMETIC

      public static final int ALGORITHMTYPE_ARITHMETIC
      collective MI assumption, arithmetic mean for posteriors
      另请参阅:
    • ALGORITHMTYPE_GEOMETRIC

      public static final int ALGORITHMTYPE_GEOMETRIC
      collective MI assumption, geometric mean for posteriors
      另请参阅:
    • TAGS_ALGORITHMTYPE

      public static final Tag[] TAGS_ALGORITHMTYPE
      the types of algorithms
  • 构造器详细资料

    • MILR

      public MILR()
  • 方法详细资料

    • globalInfo

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

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

      public void setOptions(String[] options) throws Exception
      Parses a given list of options.
      指定者:
      setOptions 在接口中 OptionHandler
      覆盖:
      setOptions 在类中 Classifier
      参数:
      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 在类中 Classifier
      返回:
      an array of strings suitable for passing to setOptions
    • ridgeTipText

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

      public void setRidge(double ridge)
      Sets the ridge in the log-likelihood.
      参数:
      ridge - the ridge
    • getRidge

      public double getRidge()
      Gets the ridge in the log-likelihood.
      返回:
      the ridge
    • algorithmTypeTipText

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

      public SelectedTag getAlgorithmType()
      Gets the type of algorithm.
      返回:
      the algorithm type
    • setAlgorithmType

      public void setAlgorithmType(SelectedTag newType)
      Sets the algorithm type.
      参数:
      newType - the new algorithm type
    • getCapabilities

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

      public Capabilities getMultiInstanceCapabilities()
      Returns the capabilities of this multi-instance classifier for the relational data.
      指定者:
      getMultiInstanceCapabilities 在接口中 MultiInstanceCapabilitiesHandler
      返回:
      the capabilities of this object
      另请参阅:
    • buildClassifier

      public void buildClassifier(Instances train) throws Exception
      Builds the classifier
      指定者:
      buildClassifier 在类中 Classifier
      参数:
      train - the training data to be used for generating the boosted classifier.
      抛出:
      Exception - if the classifier could not be built successfully
    • distributionForInstance

      public double[] distributionForInstance(Instance exmp) throws Exception
      Computes the distribution for a given exemplar
      覆盖:
      distributionForInstance 在类中 Classifier
      参数:
      exmp - the exemplar for which distribution is computed
      返回:
      the distribution
      抛出:
      Exception - if the distribution can't be computed successfully
    • toString

      public String toString()
      Gets a string describing the classifier.
      覆盖:
      toString 在类中 Object
      返回:
      a string describing the classifer built.
    • getRevision

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

      public static void main(String[] argv)
      Main method for testing this class.
      参数:
      argv - should contain the command line arguments to the scheme (see Evaluation)