Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weka.classifiers.bayes.net.search.fixed
Class NaiveBayes

    java.lang.Object
      weka.classifiers.bayes.net.search.SearchAlgorithm
          weka.classifiers.bayes.net.search.fixed.NaiveBayes

All Implemented Interfaces:
  java.io.Serializable, OptionHandler

    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.

Version:
  $Revision: 1.3 $
Author:
  Remco Bouckaert
See Also:
  Serialized Form

Constructor Summary
`NaiveBayes()`

Method Summary
`void` | `buildStructure(BayesNet bayesNet, Instances instances)` buildStructure determines the network structure/graph of the network.

Methods inherited from class weka.classifiers.bayes.net.search.SearchAlgorithm
`getOptions, initAsNaiveBayesTipText, listOptions, maxNrOfParentsTipText, setOptions, toString`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### NaiveBayes

    public NaiveBayes()

Method Detail

### buildStructure

    public void buildStructure(BayesNet bayesNet,
                               Instances instances)
                        throws java.lang.Exception

  Description copied from class: `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.

  Overrides:
    `buildStructure` in class `SearchAlgorithm`
  Throws:
    `java.lang.Exception`

Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD