类 SimpleEstimator

java.lang.Object
weka.classifiers.bayes.net.estimate.BayesNetEstimator
weka.classifiers.bayes.net.estimate.SimpleEstimator
所有已实现的接口:
Serializable, OptionHandler, RevisionHandler
直接已知子类:
BMAEstimator

public class SimpleEstimator extends BayesNetEstimator
SimpleEstimator is used for estimating the conditional probability tables of a Bayes network once the structure has been learned. Estimates probabilities directly from data.

Valid options are:

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

    • SimpleEstimator

      public SimpleEstimator()
  • 方法详细资料

    • globalInfo

      public String globalInfo()
      Returns a string describing this object
      覆盖:
      globalInfo 在类中 BayesNetEstimator
      返回:
      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 在类中 BayesNetEstimator
      参数:
      bayesNet - the bayes net to use
      抛出:
      Exception - if something goes wrong
    • updateClassifier

      public void updateClassifier(BayesNet bayesNet, Instance instance) throws Exception
      Updates the classifier with the given instance.
      覆盖:
      updateClassifier 在类中 BayesNetEstimator
      参数:
      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 在类中 BayesNetEstimator
      参数:
      bayesNet - the bayes net to use
      抛出:
      Exception - if something goes wrong
    • distributionForInstance

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

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