类 AODE

java.lang.Object
weka.classifiers.Classifier
weka.classifiers.bayes.AODE
所有已实现的接口:
Serializable, Cloneable, UpdateableClassifier, CapabilitiesHandler, OptionHandler, RevisionHandler, TechnicalInformationHandler, WeightedInstancesHandler

AODE achieves highly accurate classification by averaging over all of a small space of alternative naive-Bayes-like models that have weaker (and hence less detrimental) independence assumptions than naive Bayes. The resulting algorithm is computationally efficient while delivering highly accurate classification on many learning tasks.

For more information, see

G. Webb, J. Boughton, Z. Wang (2005). Not So Naive Bayes: Aggregating One-Dependence Estimators. Machine Learning. 58(1):5-24.

Further papers are available at
http://www.csse.monash.edu.au/~webb/.

Can use an m-estimate for smoothing base probability estimates in place of the Laplace correction (via option -M).
Default frequency limit set to 1.

BibTeX:

 @article{Webb2005,
    author = {G. Webb and J. Boughton and Z. Wang},
    journal = {Machine Learning},
    number = {1},
    pages = {5-24},
    title = {Not So Naive Bayes: Aggregating One-Dependence Estimators},
    volume = {58},
    year = {2005}
 }
 

Valid options are:

 -D
  Output debugging information
 
 -F <int>
  Impose a frequency limit for superParents
  (default is 1)
 -M
  Use m-estimate instead of laplace correction
 
 -W <int>
  Specify a weight to use with m-estimate
  (default is 1)
版本:
$Revision: 5516 $
作者:
Janice Boughton (jrbought@csse.monash.edu.au), Zhihai Wang (zhw@csse.monash.edu.au)
另请参阅:
  • 构造器详细资料

    • AODE

      public AODE()
  • 方法详细资料

    • globalInfo

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

      public TechnicalInformation getTechnicalInformation()
      Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
      指定者:
      getTechnicalInformation 在接口中 TechnicalInformationHandler
      返回:
      the technical information about this class
    • getCapabilities

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

      public void buildClassifier(Instances instances) throws Exception
      Generates the classifier.
      指定者:
      buildClassifier 在类中 Classifier
      参数:
      instances - set of instances serving as training data
      抛出:
      Exception - if the classifier has not been generated successfully
    • updateClassifier

      public void updateClassifier(Instance instance)
      Updates the classifier with the given instance.
      指定者:
      updateClassifier 在接口中 UpdateableClassifier
      参数:
      instance - the new training instance to include in the model
    • distributionForInstance

      public double[] distributionForInstance(Instance instance) throws Exception
      Calculates the class membership probabilities for the given test instance.
      覆盖:
      distributionForInstance 在类中 Classifier
      参数:
      instance - the instance to be classified
      返回:
      predicted class probability distribution
      抛出:
      Exception - if there is a problem generating the prediction
    • NBconditionalProb

      public double NBconditionalProb(Instance instance, int classVal)
      Calculates the probability of the specified class for the given test instance, using naive Bayes.
      参数:
      instance - the instance to be classified
      classVal - the class for which to calculate the probability
      返回:
      predicted class probability
    • 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.

      Valid options are:

       -D
        Output debugging information
       
       -F <int>
        Impose a frequency limit for superParents
        (default is 1)
       -M
        Use m-estimate instead of laplace correction
       
       -W <int>
        Specify a weight to use with m-estimate
        (default is 1)
      指定者:
      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
    • weightTipText

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

      public void setWeight(int w)
      Sets the weight for m-estimate
      参数:
      w - the weight
    • getWeight

      public int getWeight()
      Gets the weight used in m-estimate
      返回:
      the frequency limit
    • useMEstimatesTipText

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

      public boolean getUseMEstimates()
      Gets if m-estimaces is being used.
      返回:
      Value of m_MEstimates.
    • setUseMEstimates

      public void setUseMEstimates(boolean value)
      Sets if m-estimates is to be used.
      参数:
      value - Value to assign to m_MEstimates.
    • frequencyLimitTipText

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

      public void setFrequencyLimit(int f)
      Sets the frequency limit
      参数:
      f - the frequency limit
    • getFrequencyLimit

      public int getFrequencyLimit()
      Gets the frequency limit.
      返回:
      the frequency limit
    • toString

      public String toString()
      Returns a description of the classifier.
      覆盖:
      toString 在类中 Object
      返回:
      a description of the classifier as a string.
    • 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 - the options