类 NaiveBayes
java.lang.Object
weka.classifiers.bayes.net.search.SearchAlgorithm
weka.classifiers.bayes.net.search.fixed.NaiveBayes
- 所有已实现的接口:
Serializable
,OptionHandler
,RevisionHandler
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
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildStructure
(BayesNet bayesNet, Instances instances) buildStructure determines the network structure/graph of the network.Returns the revision string.Returns a string describing this object从类继承的方法 weka.classifiers.bayes.net.search.SearchAlgorithm
getOptions, initAsNaiveBayesTipText, listOptions, maxNrOfParentsTipText, setOptions, toString
-
构造器详细资料
-
NaiveBayes
public NaiveBayes()
-
-
方法详细资料
-
globalInfo
Returns a string describing this object- 返回:
- a description of the classifier suitable for displaying in the explorer/experimenter gui
-
buildStructure
从类复制的说明: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
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中SearchAlgorithm
- 返回:
- the revision
-