Documentation of 'weka.classifiers.bayes.net.search.fixed.NaiveBayes' Java class
NaiveBayes
weka.classifiers.bayes.net.search.fixed

Class NaiveBayes

  • All Implemented Interfaces:
    java.io.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.

    See Also:
    Serialized Form
    • Constructor Detail

      • NaiveBayes

        public NaiveBayes()
    • Method Detail

      • globalInfo

        public java.lang.String globalInfo()
        Returns a string describing this object
        Returns:
        a description of the classifier suitable for displaying in the explorer/experimenter gui
      • 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
        Parameters:
        bayesNet -
        instances - the instances to work with
        Throws:
        java.lang.Exception - if something goes wrong

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.