BayesNet (original) (raw)
Modifier and Type
Method and Description
java.lang.String
[BIFFileTipText](../../../weka/classifiers/bayes/BayesNet.html#BIFFileTipText--)()
void
[buildClassifier](../../../weka/classifiers/bayes/BayesNet.html#buildClassifier-weka.core.Instances-)([Instances](../../../weka/core/Instances.html "class in weka.core") instances)
Generates the classifier.
void
[buildStructure](../../../weka/classifiers/bayes/BayesNet.html#buildStructure--)()
buildStructure determines the network structure/graph of the network.
double[]
[countsForInstance](../../../weka/classifiers/bayes/BayesNet.html#countsForInstance-weka.core.Instance-)([Instance](../../../weka/core/Instance.html "class in weka.core") instance)
Calculates the counts for Dirichlet distribution for the class membership probabilities for the given test instance.
double[]
[distributionForInstance](../../../weka/classifiers/bayes/BayesNet.html#distributionForInstance-weka.core.Instance-)([Instance](../../../weka/core/Instance.html "class in weka.core") instance)
Calculates the class membership probabilities for the given test instance.
java.util.Enumeration
[enumerateMeasures](../../../weka/classifiers/bayes/BayesNet.html#enumerateMeasures--)()
Returns an enumeration of the measure names.
void
[estimateCPTs](../../../weka/classifiers/bayes/BayesNet.html#estimateCPTs--)()
estimateCPTs estimates the conditional probability tables for the Bayes Net using the network structure.
java.lang.String
[estimatorTipText](../../../weka/classifiers/bayes/BayesNet.html#estimatorTipText--)()
This will return a string describing the BayesNetEstimator.
[ADNode](../../../weka/classifiers/bayes/net/ADNode.html "class in weka.classifiers.bayes.net")
[getADTree](../../../weka/classifiers/bayes/BayesNet.html#getADTree--)()
get ADTree strucrture containing efficient representation of counts.
java.lang.String
[getBIFFile](../../../weka/classifiers/bayes/BayesNet.html#getBIFFile--)()
Get name of network in BIF file to compare with
java.lang.String
[getBIFHeader](../../../weka/classifiers/bayes/BayesNet.html#getBIFHeader--)()
[Capabilities](../../../weka/core/Capabilities.html "class in weka.core")
[getCapabilities](../../../weka/classifiers/bayes/BayesNet.html#getCapabilities--)()
Returns default capabilities of the classifier.
int
[getCardinality](../../../weka/classifiers/bayes/BayesNet.html#getCardinality-int-)(int iNode)
get number of values a node can take
[Estimator](../../../weka/estimators/Estimator.html "class in weka.estimators")[][]
[getDistributions](../../../weka/classifiers/bayes/BayesNet.html#getDistributions--)()
Get full set of estimators.
[BayesNetEstimator](../../../weka/classifiers/bayes/net/estimate/BayesNetEstimator.html "class in weka.classifiers.bayes.net.estimate")
[getEstimator](../../../weka/classifiers/bayes/BayesNet.html#getEstimator--)()
Get the BayesNetEstimator used for calculating the CPTs
double
[getMeasure](../../../weka/classifiers/bayes/BayesNet.html#getMeasure-java.lang.String-)(java.lang.String measureName)
Returns the value of the named measure
java.lang.String
[getName](../../../weka/classifiers/bayes/BayesNet.html#getName--)()
get name of the Bayes network
java.lang.String
[getNodeName](../../../weka/classifiers/bayes/BayesNet.html#getNodeName-int-)(int iNode)
get name of a node in the Bayes network
java.lang.String
[getNodeValue](../../../weka/classifiers/bayes/BayesNet.html#getNodeValue-int-int-)(int iNode, int iValue)
get name of a particular value of a node
int
[getNrOfNodes](../../../weka/classifiers/bayes/BayesNet.html#getNrOfNodes--)()
get number of nodes in the Bayes network
int
[getNrOfParents](../../../weka/classifiers/bayes/BayesNet.html#getNrOfParents-int-)(int iNode)
get number of parents of a node in the network structure
java.lang.String[]
[getOptions](../../../weka/classifiers/bayes/BayesNet.html#getOptions--)()
Gets the current settings of the classifier.
int
[getParent](../../../weka/classifiers/bayes/BayesNet.html#getParent-int-int-)(int iNode, int iParent)
get node index of a parent of a node in the network structure
int
[getParentCardinality](../../../weka/classifiers/bayes/BayesNet.html#getParentCardinality-int-)(int iNode)
get number of values the collection of parents of a node can take
[ParentSet](../../../weka/classifiers/bayes/net/ParentSet.html "class in weka.classifiers.bayes.net")
[getParentSet](../../../weka/classifiers/bayes/BayesNet.html#getParentSet-int-)(int iNode)
get the parent set of a node
[ParentSet](../../../weka/classifiers/bayes/net/ParentSet.html "class in weka.classifiers.bayes.net")[]
[getParentSets](../../../weka/classifiers/bayes/BayesNet.html#getParentSets--)()
Get full set of parent sets.
double
[getProbability](../../../weka/classifiers/bayes/BayesNet.html#getProbability-int-int-int-)(int iNode, int iParent, int iValue)
get particular probability of the conditional probability distribtion of a node given its parents.
java.lang.String
[getRevision](../../../weka/classifiers/bayes/BayesNet.html#getRevision--)()
Returns the revision string.
[SearchAlgorithm](../../../weka/classifiers/bayes/net/search/SearchAlgorithm.html "class in weka.classifiers.bayes.net.search")
[getSearchAlgorithm](../../../weka/classifiers/bayes/BayesNet.html#getSearchAlgorithm--)()
Get the SearchAlgorithm used as the search algorithm
boolean
[getUseADTree](../../../weka/classifiers/bayes/BayesNet.html#getUseADTree--)()
Method declaration
java.lang.String
[globalInfo](../../../weka/classifiers/bayes/BayesNet.html#globalInfo--)()
This will return a string describing the classifier.
java.lang.String
[graph](../../../weka/classifiers/bayes/BayesNet.html#graph--)()
Returns a BayesNet graph in XMLBIF ver 0.3 format.
int
[graphType](../../../weka/classifiers/bayes/BayesNet.html#graphType--)()
Returns the type of graph this classifier represents.
void
[initCPTs](../../../weka/classifiers/bayes/BayesNet.html#initCPTs--)()
initializes the conditional probabilities
void
[initStructure](../../../weka/classifiers/bayes/BayesNet.html#initStructure--)()
Init structure initializes the structure to an empty graph or a Naive Bayes graph (depending on the -N flag).
java.util.Enumeration
[listOptions](../../../weka/classifiers/bayes/BayesNet.html#listOptions--)()
Returns an enumeration describing the available options
static void
[main](../../../weka/classifiers/bayes/BayesNet.html#main-java.lang.String:A-)(java.lang.String[] argv)
Main method for testing this class.
double
[measureAICScore](../../../weka/classifiers/bayes/BayesNet.html#measureAICScore--)()
double
[measureBayesScore](../../../weka/classifiers/bayes/BayesNet.html#measureBayesScore--)()
double
[measureBDeuScore](../../../weka/classifiers/bayes/BayesNet.html#measureBDeuScore--)()
double
[measureDivergence](../../../weka/classifiers/bayes/BayesNet.html#measureDivergence--)()
double
[measureEntropyScore](../../../weka/classifiers/bayes/BayesNet.html#measureEntropyScore--)()
double
[measureExtraArcs](../../../weka/classifiers/bayes/BayesNet.html#measureExtraArcs--)()
double
[measureMDLScore](../../../weka/classifiers/bayes/BayesNet.html#measureMDLScore--)()
double
[measureMissingArcs](../../../weka/classifiers/bayes/BayesNet.html#measureMissingArcs--)()
double
[measureReversedArcs](../../../weka/classifiers/bayes/BayesNet.html#measureReversedArcs--)()
static java.lang.String[]
[partitionOptions](../../../weka/classifiers/bayes/BayesNet.html#partitionOptions-java.lang.String:A-)(java.lang.String[] options)
Returns the secondary set of options (if any) contained in the supplied options array.
java.lang.String
[searchAlgorithmTipText](../../../weka/classifiers/bayes/BayesNet.html#searchAlgorithmTipText--)()
void
[setBIFFile](../../../weka/classifiers/bayes/BayesNet.html#setBIFFile-java.lang.String-)(java.lang.String sBIFFile)
Set name of network in BIF file to compare with
void
[setEstimator](../../../weka/classifiers/bayes/BayesNet.html#setEstimator-weka.classifiers.bayes.net.estimate.BayesNetEstimator-)([BayesNetEstimator](../../../weka/classifiers/bayes/net/estimate/BayesNetEstimator.html "class in weka.classifiers.bayes.net.estimate") newBayesNetEstimator)
Set the Estimator Algorithm used in calculating the CPTs
void
[setOptions](../../../weka/classifiers/bayes/BayesNet.html#setOptions-java.lang.String:A-)(java.lang.String[] options)
Parses a given list of options.
void
[setSearchAlgorithm](../../../weka/classifiers/bayes/BayesNet.html#setSearchAlgorithm-weka.classifiers.bayes.net.search.SearchAlgorithm-)([SearchAlgorithm](../../../weka/classifiers/bayes/net/search/SearchAlgorithm.html "class in weka.classifiers.bayes.net.search") newSearchAlgorithm)
Set the SearchAlgorithm used in searching for network structures.
void
[setUseADTree](../../../weka/classifiers/bayes/BayesNet.html#setUseADTree-boolean-)(boolean bUseADTree)
Set whether ADTree structure is used or not
java.lang.String
[toString](../../../weka/classifiers/bayes/BayesNet.html#toString--)()
Returns a description of the classifier.
java.lang.String
[toXMLBIF03](../../../weka/classifiers/bayes/BayesNet.html#toXMLBIF03--)()
Returns a description of the classifier in XML BIF 0.3 format.
void
[updateClassifier](../../../weka/classifiers/bayes/BayesNet.html#updateClassifier-weka.core.Instance-)([Instance](../../../weka/core/Instance.html "class in weka.core") instance)
Updates the classifier with the given instance.
java.lang.String
[useADTreeTipText](../../../weka/classifiers/bayes/BayesNet.html#useADTreeTipText--)()