Classes | |
class | CPTWalker |
Public Member Functions | |
BeliefNode | addDecisionNode (String name) |
BeliefNode | addNode (String name, Domain domain, String attributeName) |
BeliefNode | addNode (String name, Domain domain) |
BeliefNode | addNode (String name) |
void | addNode (BeliefNode node) |
BeliefNetworkEx () | |
BeliefNetworkEx (String filename) throws Exception | |
BeliefNetworkEx (BeliefNetwork bn) | |
HashMap< BeliefNode, double[]> | computePriors (int[] evidenceDomainIndices) |
void | connect (BeliefNode parent, BeliefNode child) |
void | connect (BeliefNode parent, BeliefNode child, boolean adjustCPF) |
void | connect (String node1, String node2) throws Exception |
void | dump () |
int[] | evidence2DomainIndices (String[][] evidences) |
WeightedSample[] | getAssignmentDistribution (String[][] evidences, String[] queryNodeNames, int numSamples) throws Exception |
String | getAttributeNameForNode (String nodeName) |
double | getCPTProbability (BeliefNode node, int[] nodeDomainIndices) |
String[] | getDiscreteDomainAsArray (String nodeName) |
Domain | getDomain (String nodeName) |
int | getDomainIndex (BeliefNode node, String value) |
int[] | getDomainProductNodeIndices (BeliefNode node) |
BeliefNode | getNode (int idx) |
BeliefNode | getNode (String name) |
int[] | getNodeDomainIndicesFromStrings (String[][] nodeAndDomains) |
int | getNodeIndex (BeliefNode node) |
int | getNodeIndex (String name) |
Set< String > | getNodeNamesForAttribute (String attributeName) |
BeliefNode[] | getNodes () |
double | getNumWorlds () |
double | getProbability (String[][] queries, String[][] evidences) throws Exception |
HashMap< String, String > | getSample (Random generator) throws Exception |
double | getSampledProbability (String[][] queries, String[][] evidences, int numSamples) throws Exception |
int[] | getTopologicalOrder () |
WeightedSample | getWeightedSample (int[] nodeOrder, int[] evidenceDomainIndices, Random generator) throws Exception |
WeightedSample | getWeightedSample (String[][] evidences, Random generator) throws Exception |
double | getWorldProbability (int[] nodeDomainIndices) |
void | printDomain () |
void | printFullJoint () throws Exception |
void | queryShell () |
void | removeAllEvidences () |
void | save () throws Exception |
void | save (String filename, Exporter exporter) throws FileNotFoundException |
void | save (String filename) throws Exception |
void | savePMML (String filename) throws FileNotFoundException |
void | saveXMLBIF (String filename) throws FileNotFoundException |
void | setEvidence (String nodeName, String outcome) throws Exception |
void | show (String pluginDir) |
void | show () |
void | sortNodeDomain (String nodeName, boolean numeric) throws Exception |
void | walkCPT (BeliefNode node, CPTWalker walker) |
Static Public Member Functions | |
static String[] | getDiscreteDomainAsArray (BeliefNode node) |
static BeliefNetwork | load (String filename) throws Exception |
static BeliefNetwork | load (String filename, Importer importer) throws FileNotFoundException |
static void | registerDefaultPlugins () |
static void | save (BeliefNetwork net, String filename, Exporter exporter) throws FileNotFoundException |
static void | save (BeliefNetwork net, String filename) throws Exception |
Public Attributes | |
BeliefNetwork | bn |
Static Public Attributes | |
static final int | MAX_TRIALS = 5000 |
Protected Member Functions | |
void | addAttributeMapping (String nodeName, String attributeName) |
void | computePrior (HashMap< BeliefNode, double[]> priors, int[] evidenceDomainIndices, CPF cpf, int i, int[] addr, double[] dist) |
void | initAttributeMapping () |
void | printProbabilities (int node, Stack< String[]> evidence) throws Exception |
void | walkCPT (CPTWalker walker, CPF cpf, int[] addr, int i) |
Static Protected Member Functions | |
static String[][] | readList (String list) throws java.lang.Exception |
Protected Attributes | |
Map< String, Set< String > > | attributeToNodeNameMapping = new HashMap<String, Set<String>>() |
String | filename |
Map< String, String > | nodeNameToAttributeMapping = new HashMap<String, String>() |
Static Package Functions | |
[static initializer] | |
Static Package Attributes | |
static final Logger | logger = Logger.getLogger(BeliefNetworkEx.class) |
An instance of class BeliefNetworkEx represents a full Bayesian Network. It is a wrapper for BNJ's BeliefNetwork class with extended functionality. BeliefNetwork could not simply be extended by inheritance because virtually all members are declared private. Therefore, BeliefNetworkEx has a public member bn, which is an instance of BeliefNetwork.
Definition at line 56 of file BeliefNetworkEx.java.
edu::tum::cs::bayesnets::core::BeliefNetworkEx::BeliefNetworkEx | ( | BeliefNetwork | bn | ) | [inline] |
constructs a BeliefNetworkEx object from a BNJ BeliefNetwork object
bn | the BNJ BeliefNetwork object |
Definition at line 97 of file BeliefNetworkEx.java.
edu::tum::cs::bayesnets::core::BeliefNetworkEx::BeliefNetworkEx | ( | String | filename | ) | throws Exception [inline] |
constructs a BeliefNetworkEx object from a saved network file
filename | the name of the file to load the network from |
Exception |
Definition at line 107 of file BeliefNetworkEx.java.
edu::tum::cs::bayesnets::core::BeliefNetworkEx::BeliefNetworkEx | ( | ) | [inline] |
constructs an empty network. Use methods addNode and connect to define the network structure.
Definition at line 116 of file BeliefNetworkEx.java.
edu::tum::cs::bayesnets::core::BeliefNetworkEx::[static initializer] | ( | ) | [inline, static, package] |
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::addAttributeMapping | ( | String | nodeName, | |
String | attributeName | |||
) | [inline, protected] |
Add a link from the node name to the attribute name. Insert an entry into nodeNameToAttributeMapping and into attributeToNodeNameMapping.
nodeName | the name of the node to link. | |
attributeName | the name of the attribute to be linked with the node. |
Definition at line 135 of file BeliefNetworkEx.java.
BeliefNode edu::tum::cs::bayesnets::core::BeliefNetworkEx::addDecisionNode | ( | String | name | ) | [inline] |
adds a decision node (boolean) to the network
name | label of the node |
Definition at line 176 of file BeliefNetworkEx.java.
BeliefNode edu::tum::cs::bayesnets::core::BeliefNetworkEx::addNode | ( | String | name, | |
Domain | domain, | |||
String | attributeName | |||
) | [inline] |
adds a node with the given name and domain and attribute name to the network.
name | the name of the node | |
domain | the node's domain (usually an instance of BNJ's class Discrete) | |
attributeName | the name of the attribute that is assigned to the node |
Definition at line 211 of file BeliefNetworkEx.java.
BeliefNode edu::tum::cs::bayesnets::core::BeliefNetworkEx::addNode | ( | String | name, | |
Domain | domain | |||
) | [inline] |
adds a node with the given name and domain to the network. Associate the attribute with the same name to the node.
name | the name of the node | |
domain | the node's domain (usually an instance of BNJ's class Discrete) |
Definition at line 200 of file BeliefNetworkEx.java.
BeliefNode edu::tum::cs::bayesnets::core::BeliefNetworkEx::addNode | ( | String | name | ) | [inline] |
adds a node with the given name and the standard discrete domain {True, False} to the network
name | the name of the node |
Definition at line 189 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::addNode | ( | BeliefNode | node | ) | [inline] |
adds a node to the network
node | the node that is to be added |
Definition at line 167 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::computePrior | ( | HashMap< BeliefNode, double[]> | priors, | |
int[] | evidenceDomainIndices, | |||
CPF | cpf, | |||
int | i, | |||
int[] | addr, | |||
double[] | dist | |||
) | [inline, protected] |
Definition at line 1108 of file BeliefNetworkEx.java.
HashMap<BeliefNode, double[]> edu::tum::cs::bayesnets::core::BeliefNetworkEx::computePriors | ( | int[] | evidenceDomainIndices | ) | [inline] |
computes the prior distribution of each node
evidenceDomainIndices | may be null, otherwise evidence to be "faked in" (domain index for each of the nodes, -1 for no evidence). The prior of an evidence node is then calculated as 1 and nodes lower in the topology will consider the evidence in their priors. |
Definition at line 1087 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::connect | ( | BeliefNode | parent, | |
BeliefNode | child | |||
) | [inline] |
Definition at line 270 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::connect | ( | BeliefNode | parent, | |
BeliefNode | child, | |||
boolean | adjustCPF | |||
) | [inline] |
connect two nodes
parent | parent which the bnode will be a child of | |
child | node which will be made a child of parent | |
adjustCPF | whether to adjust the CPF as well (otherwise only the graph is altered); should be set to false only if the CPF is manually initialized later on |
Definition at line 254 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::connect | ( | String | node1, | |
String | node2 | |||
) | throws Exception [inline] |
adds an edge to the network, i.e. a dependency
node1 | the name of the node that influences another | |
node2 | the name of node that is influenced |
Exception | if either of the node names are invalid |
Definition at line 225 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::dump | ( | ) | [inline] |
Dump the context of the net to the logger.
Definition at line 1025 of file BeliefNetworkEx.java.
int [] edu::tum::cs::bayesnets::core::BeliefNetworkEx::evidence2DomainIndices | ( | String | evidences[][] | ) | [inline] |
Definition at line 927 of file BeliefNetworkEx.java.
WeightedSample [] edu::tum::cs::bayesnets::core::BeliefNetworkEx::getAssignmentDistribution | ( | String | evidences[][], | |
String[] | queryNodeNames, | |||
int | numSamples | |||
) | throws Exception [inline] |
Get the sample assignment and its sampled probability as the weight sorted by probability.
evidences | the evidences for the distribution. | |
queryNodes | the nodes that should be sampled. | |
numSamples | the number of samples to draw from. |
Exception |
Definition at line 758 of file BeliefNetworkEx.java.
String edu::tum::cs::bayesnets::core::BeliefNetworkEx::getAttributeNameForNode | ( | String | nodeName | ) | [inline] |
Get the attribute name that is linked to the given node.
nodeName | the name of the node. |
Definition at line 150 of file BeliefNetworkEx.java.
double edu::tum::cs::bayesnets::core::BeliefNetworkEx::getCPTProbability | ( | BeliefNode | node, | |
int[] | nodeDomainIndices | |||
) | [inline] |
Get a specific entry in the cpt of the given node. The nodeDomainIndices should contain a value for each node in the BeliefNet but only values in the domain product of the node are queried for. WARNING: This is very slow (mainly because getDomainProductNodeIndices performs a linear search for each node)
node | the node the CPT should come from. | |
nodeDomainIndices | the values the nodes should have (domain indices for all the nodes in the network) |
Definition at line 821 of file BeliefNetworkEx.java.
String [] edu::tum::cs::bayesnets::core::BeliefNetworkEx::getDiscreteDomainAsArray | ( | String | nodeName | ) | [inline] |
Definition at line 1018 of file BeliefNetworkEx.java.
static String [] edu::tum::cs::bayesnets::core::BeliefNetworkEx::getDiscreteDomainAsArray | ( | BeliefNode | node | ) | [inline, static] |
Definition at line 1010 of file BeliefNetworkEx.java.
Domain edu::tum::cs::bayesnets::core::BeliefNetworkEx::getDomain | ( | String | nodeName | ) | [inline] |
returns the domain of the node with the given name
nodeName | the name of the node for which the domain is to be returned |
Definition at line 634 of file BeliefNetworkEx.java.
int edu::tum::cs::bayesnets::core::BeliefNetworkEx::getDomainIndex | ( | BeliefNode | node, | |
String | value | |||
) | [inline] |
gets the index of the given value inside the given node's domain
node | a node with a discrete domain | |
value | the value whose index to search for |
Definition at line 1077 of file BeliefNetworkEx.java.
int [] edu::tum::cs::bayesnets::core::BeliefNetworkEx::getDomainProductNodeIndices | ( | BeliefNode | node | ) | [inline] |
Get the indices of the nodes that the CPT of the given node depends on.
node | the node to take the CPT from. |
Definition at line 308 of file BeliefNetworkEx.java.
BeliefNode edu::tum::cs::bayesnets::core::BeliefNetworkEx::getNode | ( | int | idx | ) | [inline] |
Definition at line 286 of file BeliefNetworkEx.java.
BeliefNode edu::tum::cs::bayesnets::core::BeliefNetworkEx::getNode | ( | String | name | ) | [inline] |
retrieves the node with the given name
name | the name of the node |
Reimplemented in edu::tum::cs::srl::bayesnets::RelationalBeliefNetwork.
Definition at line 279 of file BeliefNetworkEx.java.
int [] edu::tum::cs::bayesnets::core::BeliefNetworkEx::getNodeDomainIndicesFromStrings | ( | String | nodeAndDomains[][] | ) | [inline] |
Get the indices into the domains of the nodes for the given node value assignments.
nodeAndDomains | the assignments to be converted. |
Definition at line 321 of file BeliefNetworkEx.java.
int edu::tum::cs::bayesnets::core::BeliefNetworkEx::getNodeIndex | ( | BeliefNode | node | ) | [inline] |
Definition at line 353 of file BeliefNetworkEx.java.
int edu::tum::cs::bayesnets::core::BeliefNetworkEx::getNodeIndex | ( | String | name | ) | [inline] |
get the index (into the BeliefNetwork's array of nodes) of the node with the given name
name | the name of the node |
Reimplemented in edu::tum::cs::srl::bayesnets::RelationalBeliefNetwork.
Definition at line 295 of file BeliefNetworkEx.java.
Set<String> edu::tum::cs::bayesnets::core::BeliefNetworkEx::getNodeNamesForAttribute | ( | String | attributeName | ) | [inline] |
Get the node names that are linked to the given attribute name.
attributeName | the attribute name the nodes are linked to. |
Definition at line 159 of file BeliefNetworkEx.java.
BeliefNode [] edu::tum::cs::bayesnets::core::BeliefNetworkEx::getNodes | ( | ) | [inline] |
Definition at line 1147 of file BeliefNetworkEx.java.
double edu::tum::cs::bayesnets::core::BeliefNetworkEx::getNumWorlds | ( | ) | [inline] |
gets the total number of possible worlds
Definition at line 1154 of file BeliefNetworkEx.java.
double edu::tum::cs::bayesnets::core::BeliefNetworkEx::getProbability | ( | String | queries[][], | |
String | evidences[][] | |||
) | throws Exception [inline] |
calculates a probability Pr[X=x, Y=y, ... | E=e, F=f, ...]
queries | an array of 2-element string arrays (variable, outcome) that represents the conjunction "X=x AND Y=y AND ..."; | |
evidences | the conjunction of evidences, specified in the same way |
Exception |
Definition at line 386 of file BeliefNetworkEx.java.
HashMap<String,String> edu::tum::cs::bayesnets::core::BeliefNetworkEx::getSample | ( | Random | generator | ) | throws Exception [inline] |
performs sampling on the network and returns a sample of the marginal distribution represented by this Bayesian network; evidences that are set during sampling are removed afterwards in order to retain the original state of the network.
generator | random number generator to use to generate sample (null to create one) |
Exception |
Definition at line 971 of file BeliefNetworkEx.java.
double edu::tum::cs::bayesnets::core::BeliefNetworkEx::getSampledProbability | ( | String | queries[][], | |
String | evidences[][], | |||
int | numSamples | |||
) | throws Exception [inline] |
Calculates a probability Pr[X=x, Y=y, ... | E=e, F=f, ...] by sampling a number of samples.
queries | an array of 2-element string arrays (variable, outcome) that represents the conjunction "X=x AND Y=y AND ...". | |
evidences | the conjunction of evidences, specified in the same way. | |
numSamples | the number of samples to draw. |
Exception |
Definition at line 851 of file BeliefNetworkEx.java.
int [] edu::tum::cs::bayesnets::core::BeliefNetworkEx::getTopologicalOrder | ( | ) | [inline] |
gets a topological ordering of the network's nodes
Definition at line 806 of file BeliefNetworkEx.java.
WeightedSample edu::tum::cs::bayesnets::core::BeliefNetworkEx::getWeightedSample | ( | int[] | nodeOrder, | |
int[] | evidenceDomainIndices, | |||
Random | generator | |||
) | throws Exception [inline] |
Definition at line 882 of file BeliefNetworkEx.java.
WeightedSample edu::tum::cs::bayesnets::core::BeliefNetworkEx::getWeightedSample | ( | String | evidences[][], | |
Random | generator | |||
) | throws Exception [inline] |
Sample from the BeliefNet via likelihood weighted sampling.
evidences | the evidences for the sample. | |
sampleDomainIndexes | the resulting domain indexes for each node. The length must be initialized to the number of nodes in the net. |
Exception |
Definition at line 875 of file BeliefNetworkEx.java.
double edu::tum::cs::bayesnets::core::BeliefNetworkEx::getWorldProbability | ( | int[] | nodeDomainIndices | ) | [inline] |
gets the probability of the possible world given by the vector of domain indices
nodeDomainIndices | domain indices for each of the node's random variables |
Definition at line 1139 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::initAttributeMapping | ( | ) | [inline, protected] |
Initialize the attribute mapping with the basenodes' names to itself respectively.
Definition at line 123 of file BeliefNetworkEx.java.
static BeliefNetwork edu::tum::cs::bayesnets::core::BeliefNetworkEx::load | ( | String | filename | ) | throws Exception [inline, static] |
loads a Bayesian network from the given file (determining a suitable importer from the extension)
filename |
Exception |
Definition at line 504 of file BeliefNetworkEx.java.
static BeliefNetwork edu::tum::cs::bayesnets::core::BeliefNetworkEx::load | ( | String | filename, | |
Importer | importer | |||
) | throws FileNotFoundException [inline, static] |
static function for loading a Bayesian network into an instance of class BeliefNetwork
filename | the file containing the network data | |
importer | an importer that is capable of understanding the file format |
FileNotFoundException |
Definition at line 491 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::printDomain | ( | ) | [inline] |
prints domain information for all nodes of the network to System.out
Definition at line 469 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::printFullJoint | ( | ) | throws Exception [inline] |
Definition at line 462 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::printProbabilities | ( | int | node, | |
Stack< String[]> | evidence | |||
) | throws Exception [inline, protected] |
Definition at line 436 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::queryShell | ( | ) | [inline] |
starts a shell that allows the user to query the network
Definition at line 701 of file BeliefNetworkEx.java.
static String [][] edu::tum::cs::bayesnets::core::BeliefNetworkEx::readList | ( | String | list | ) | throws java.lang.Exception [inline, static, protected] |
helper function for queryShell that reads a list of comma-separated assignments "A=a,B=b,..." into an array [["A","a"],["B","b"],...]
list |
java.lang.Exception |
Definition at line 685 of file BeliefNetworkEx.java.
static void edu::tum::cs::bayesnets::core::BeliefNetworkEx::registerDefaultPlugins | ( | ) | [inline, static] |
Definition at line 651 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::removeAllEvidences | ( | ) | [inline] |
Remove all evidences.
Definition at line 835 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::save | ( | ) | throws Exception [inline] |
writes the Bayesian network to the same file it was loaded from
Exception |
Definition at line 585 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::save | ( | String | filename, | |
Exporter | exporter | |||
) | throws FileNotFoundException [inline] |
writes the Bayesian network to a file with the given name using an exporter
filename | the file to write to | |
exporter | an exporter for the desired file format |
FileNotFoundException |
Definition at line 558 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::save | ( | String | filename | ) | throws Exception [inline] |
saves a Bayesian network to the given filename (determining a suitable exporter from the extension)
filename |
Exception |
Definition at line 548 of file BeliefNetworkEx.java.
static void edu::tum::cs::bayesnets::core::BeliefNetworkEx::save | ( | BeliefNetwork | net, | |
String | filename, | |||
Exporter | exporter | |||
) | throws FileNotFoundException [inline, static] |
static function for writing a Bayesian network to a file using a given exporter
net | the network to be written | |
filename | the file to write to | |
exporter | an exporter for the desired file format |
FileNotFoundException |
Definition at line 537 of file BeliefNetworkEx.java.
static void edu::tum::cs::bayesnets::core::BeliefNetworkEx::save | ( | BeliefNetwork | net, | |
String | filename | |||
) | throws Exception [inline, static] |
saves a Bayesian network to the given filename (determining a suitable exporter from the extension)
filename |
Exception |
Definition at line 520 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::savePMML | ( | String | filename | ) | throws FileNotFoundException [inline] |
writes the Bayesian network to a file with the given name in a PMML-based format
filename | the file to write to |
FileNotFoundException |
Definition at line 576 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::saveXMLBIF | ( | String | filename | ) | throws FileNotFoundException [inline] |
writes the Bayesian network to a file with the given name in XML-BIF format
filename | the file to write to |
FileNotFoundException |
Definition at line 567 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::setEvidence | ( | String | nodeName, | |
String | outcome | |||
) | throws Exception [inline] |
sets evidence for one of the network's node
nodeName | the name of the node for which evidence is to be set | |
outcome | the outcome, which must be in compliance with the node's domain |
Exception | if the node name does not exist in the network or the outcome is not valid for the node's domain |
Definition at line 367 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::show | ( | String | pluginDir | ) | [inline] |
shows the Bayesian Network in a BNJ editor window, loading the BNJ plugins in the given directory
pluginDir | a directory containing BNJ plugins (jar files) |
Definition at line 672 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::show | ( | ) | [inline] |
shows the Bayesian Network in an editor window (with support for standard IO plugins)
Definition at line 644 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::sortNodeDomain | ( | String | nodeName, | |
boolean | numeric | |||
) | throws Exception [inline] |
sorts the domain of the node with the given name alphabetically (if numeric is false) or numerically (if numeric is true) - in ascending order
nodeName | the name of the node whose domain is to be sorted | |
numeric | whether to sort numerically or not. If numeric is true, all domain values are converted to double for sorting. If numeric is false, the values are simply sorted alphabetically. |
Exception | if the node name is invalid |
Definition at line 602 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::walkCPT | ( | CPTWalker | walker, | |
CPF | cpf, | |||
int[] | addr, | |||
int | i | |||
) | [inline, protected] |
Definition at line 1053 of file BeliefNetworkEx.java.
void edu::tum::cs::bayesnets::core::BeliefNetworkEx::walkCPT | ( | BeliefNode | node, | |
CPTWalker | walker | |||
) | [inline] |
Definition at line 1042 of file BeliefNetworkEx.java.
Map<String, Set<String> > edu::tum::cs::bayesnets::core::BeliefNetworkEx::attributeToNodeNameMapping = new HashMap<String, Set<String>>() [protected] |
The inverse mapping of nodeNameToAttributeMapping.
Definition at line 91 of file BeliefNetworkEx.java.
BeliefNetwork edu::tum::cs::bayesnets::core::BeliefNetworkEx::bn |
the BNJ BeliefNetwork object that is wrapped by the instance of class BeliefNetworkEx. When using BNJ directly, you may need this; or you may want to use the methods of BeliefNetwork to perform an operation on the network that BeliefNetworkEx does not wrap.
Definition at line 76 of file BeliefNetworkEx.java.
String edu::tum::cs::bayesnets::core::BeliefNetworkEx::filename [protected] |
the name of the currently loaded belief network file
Definition at line 81 of file BeliefNetworkEx.java.
final Logger edu::tum::cs::bayesnets::core::BeliefNetworkEx::logger = Logger.getLogger(BeliefNetworkEx.class) [static, package] |
The logger for this class.
Definition at line 60 of file BeliefNetworkEx.java.
final int edu::tum::cs::bayesnets::core::BeliefNetworkEx::MAX_TRIALS = 5000 [static] |
The maximum number of unsuccessful trials for sampling. TODO: This should perhaps depend on the number of samples to be gathered?
Definition at line 69 of file BeliefNetworkEx.java.
Map<String, String> edu::tum::cs::bayesnets::core::BeliefNetworkEx::nodeNameToAttributeMapping = new HashMap<String, String>() [protected] |
The mapping from attribute names to the node names of nodes that should get data from the attribute.
Definition at line 86 of file BeliefNetworkEx.java.