类 BMAEstimator

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

public class BMAEstimator extends SimpleEstimator
BMAEstimator estimates conditional probability tables of a Bayes network using Bayes Model Averaging (BMA).

Valid options are:

 -k2
  Whether to use K2 prior.
 
 -A <alpha>
  Initial count (alpha)
 
版本:
$Revision: 1.8 $
作者:
Remco Bouckaert (rrb@xm.co.nz)
另请参阅:
  • 构造器详细资料

    • BMAEstimator

      public BMAEstimator()
  • 方法详细资料

    • globalInfo

      public String globalInfo()
      Returns a string describing this object
      覆盖:
      globalInfo 在类中 SimpleEstimator
      返回:
      a description of the classifier suitable for displaying in the explorer/experimenter gui
    • estimateCPTs

      public void estimateCPTs(BayesNet bayesNet) throws Exception
      estimateCPTs estimates the conditional probability tables for the Bayes Net using the network structure.
      覆盖:
      estimateCPTs 在类中 SimpleEstimator
      参数:
      bayesNet - the bayes net to use
      抛出:
      Exception - if an error occurs
    • updateClassifier

      public void updateClassifier(BayesNet bayesNet, Instance instance) throws Exception
      Updates the classifier with the given instance.
      覆盖:
      updateClassifier 在类中 SimpleEstimator
      参数:
      bayesNet - the bayes net to use
      instance - the new training instance to include in the model
      抛出:
      Exception - if the instance could not be incorporated in the model.
    • initCPTs

      public void initCPTs(BayesNet bayesNet) throws Exception
      initCPTs reserves space for CPTs and set all counts to zero
      覆盖:
      initCPTs 在类中 SimpleEstimator
      参数:
      bayesNet - the bayes net to use
      抛出:
      Exception - if something goes wrong
    • isUseK2Prior

      public boolean isUseK2Prior()
      Returns whether K2 prior is used
      返回:
      true if K2 prior is used
    • setUseK2Prior

      public void setUseK2Prior(boolean bUseK2Prior)
      Sets the UseK2Prior.
      参数:
      bUseK2Prior - The bUseK2Prior to set
    • listOptions

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

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

      Valid options are:

       -k2
        Whether to use K2 prior.
       
       -A <alpha>
        Initial count (alpha)
       
      指定者:
      setOptions 在接口中 OptionHandler
      覆盖:
      setOptions 在类中 BayesNetEstimator
      参数:
      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 在类中 BayesNetEstimator
      返回:
      an array of strings suitable for passing to setOptions
    • getRevision

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