weka.classifiers.bayes
Class BayesNetB2
java.lang.Object
|
+--weka.classifiers.Classifier
|
+--weka.classifiers.bayes.BayesNet
|
+--weka.classifiers.bayes.BayesNetB
|
+--weka.classifiers.bayes.BayesNetB2
- All Implemented Interfaces:
- java.lang.Cloneable, Drawable, 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.
- Version:
- $Revision: 1.3 $
- Author:
- Remco Bouckaert (rrb@xm.co.nz)
- See Also:
- Serialized Form
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. |
java.lang.String |
globalInfo()
This will return a string describing the classifier. |
static void |
main(java.lang.String[] argv)
Main method for testing this class. |
Methods inherited from class weka.classifiers.bayes.BayesNet |
alphaTipText, buildClassifier, countsForInstance, distributionForInstance, estimateCPTs, getAlpha, getInitAsNaiveBayes, getMaxNrOfParents, getOptions, getScoreType, getUseADTree, graph, graphType, initAsNaiveBayesTipText, initStructure, listOptions, logScore, maxNrOfParentsTipText, scoreTypeTipText, setAlpha, setInitAsNaiveBayes, setMaxNrOfParents, setOptions, setScoreType, setUseADTree, toString, toXMLBIF03, updateClassifier, useADTreeTipText |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BayesNetB2
public BayesNetB2()
globalInfo
public java.lang.String globalInfo()
- This will return a string describing the classifier.
- Overrides:
globalInfo
in class BayesNetB
- Returns:
- The string.
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
java.lang.Exception
main
public static void main(java.lang.String[] argv)
- Main method for testing this class.
- Parameters:
argv
- the options
Copyright (c)
2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London