类 NaiveBayes

java.lang.Object
weka.classifiers.bayes.net.search.SearchAlgorithm
weka.classifiers.bayes.net.search.fixed.NaiveBayes
所有已实现的接口:
Serializable, OptionHandler, RevisionHandler

public class NaiveBayes extends SearchAlgorithm
The NaiveBayes class generates a fixed Bayes network structure with arrows from the class variable to each of the attribute variables.

版本:
$Revision: 1.6 $
作者:
Remco Bouckaert
另请参阅:
  • 构造器详细资料

    • NaiveBayes

      public NaiveBayes()
  • 方法详细资料

    • globalInfo

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

      public void buildStructure(BayesNet bayesNet, Instances instances) throws Exception
      从类复制的说明: SearchAlgorithm
      buildStructure determines the network structure/graph of the network. The default behavior is creating a network where all nodes have the first node as its parent (i.e., a BayesNet that behaves like a naive Bayes classifier). This method can be overridden by derived classes to restrict the class of network structures that are acceptable.
      覆盖:
      buildStructure 在类中 SearchAlgorithm
      参数:
      bayesNet -
      instances - the instances to work with
      抛出:
      Exception - if something goes wrong
    • getRevision

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