|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.Classifier
weka.classifiers.bayes.BayesNet
public class BayesNet
Base class for a Bayes Network classifier. Provides datastructures (network structure,
conditional probability distributions, etc.) and facilities common to Bayes Network
learning algorithms like K2 and B.
Works with nominal variables and no missing values only.
For further documentation, see
public java.lang.String toXMLBIF03()
public java.lang.String useADTreeTipText()
public java.lang.String searchAlgorithmTipText()
public java.lang.String estimatorTipText()
public java.lang.String BIFFileTipText()
public java.lang.String globalInfo()
public static void main(java.lang.String[] argv)
argv
- the optionspublic java.lang.String getName()
public int getNrOfNodes()
public java.lang.String getNodeName(int iNode)
iNode:
- index of the node
public int getCardinality(int iNode)
iNode:
- index of the node
public java.lang.String getNodeValue(int iNode, int iValue)
iNode:
- index of the nodeiValue:
- index of the value
public int getNrOfParents(int iNode)
iNode:
- index of the node
public int getParent(int iNode, int iParent)
iNode:
- index of the nodeiParent:
- index of the parents, e.g., 0 is the first parent, 1 the second parent, etc.
public ParentSet[] getParentSets()
public Estimator[][] getDistributions()
public int getParentCardinality(int iNode)
iNode:
- index of the node
public double getProbability(int iNode, int iParent, int iValue)
iNode:
- index of the nodeiParent:
- index of the parent set, 0 <= iParent <= getParentCardinality(iNode)iValue:
- index of the value, 0 <= iValue <= getCardinality(iNode)
public ParentSet getParentSet(int iNode)
iNode:
- index of the node
public ADNode getADTree()
public java.util.Enumeration enumerateMeasures()
enumerateMeasures
in interface AdditionalMeasureProducer
public double measureExtraArcs()
public double measureMissingArcs()
public double measureReversedArcs()
public double measureDivergence()
public double measureBayesScore()
public double measureBDeuScore()
public double measureMDLScore()
public double measureAICScore()
public double measureEntropyScore()
public double getMeasure(java.lang.String measureName)
getMeasure
in interface AdditionalMeasureProducer
measureName
- the name of the measure to query for its value
java.lang.IllegalArgumentException
- if the named measure is not supported
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |