weka.classifiers.bayes
Class BayesNetB2

java.lang.Object
  extended byweka.classifiers.Classifier
      extended byweka.classifiers.DistributionClassifier
          extended byweka.classifiers.bayes.BayesNet
              extended byweka.classifiers.bayes.BayesNetB
                  extended byweka.classifiers.bayes.BayesNetB2
All Implemented Interfaces:
java.lang.Cloneable, OptionHandler, java.io.Serializable, WeightedInstancesHandler

public class BayesNetB2
extends BayesNetB

Class for a Bayes Network classifier based on Buntines hill climbing algorithm for learning structure, but augmented to allow arc reversal as an operation. Works with nominal variables only.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class weka.classifiers.bayes.BayesNet
m_Distributions, m_Instances, m_nOrder, m_NumClasses, m_ParentSets, TAGS_SCORE_TYPE
 
Constructor Summary
BayesNetB2()
           
 
Method Summary
 void buildStructure()
          buildStructure determines the network structure/graph of the network with Buntines greedy hill climbing algorithm, restricted by its initial structure (which can be an empty graph, or a Naive Bayes graph.
static void main(java.lang.String[] argv)
          Main method for testing this class.
 
Methods inherited from class weka.classifiers.bayes.BayesNetB
globalInfo
 
Methods inherited from class weka.classifiers.bayes.BayesNet
alphaTipText, buildClassifier, CalcNodeScore, CalcScoreOfCounts, CalcScoreOfCounts2, CalcScoreWithExtraParent, countsForInstance, distributionForInstance, estimateCPTs, getAlpha, getInitAsNaiveBayes, getMaxNrOfParents, getOptions, getScoreType, getUseADTree, initAsNaiveBayesTipText, initStructure, listOptions, logScore, maxNrOfParentsTipText, scoreTypeTipText, setAlpha, setInitAsNaiveBayes, setMaxNrOfParents, setOptions, setScoreType, setUseADTree, toString, updateClassifier, useADTreeTipText
 
Methods inherited from class weka.classifiers.DistributionClassifier
calculateEntropy, calculateLabeledInstanceMargin, calculateMargin, classifyInstance
 
Methods inherited from class weka.classifiers.Classifier
forName, makeCopies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BayesNetB2

public BayesNetB2()
Method Detail

buildStructure

public void buildStructure()
                    throws java.lang.Exception
buildStructure determines the network structure/graph of the network with Buntines greedy hill climbing algorithm, restricted by its initial structure (which can be an empty graph, or a Naive Bayes graph.

Overrides:
buildStructure in class BayesNetB
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] argv)
Main method for testing this class.

Parameters:
argv - the options