It is possible to associate an evidence scenario file with a Bayesian network. This file contains a series of evidence sets that are applied on the Observable Nodes of the network, i.e. the nodes that do not have a cost set to "Not Observable" (see ). This file can be written by the user and then imported, but it can be also generated by registering the evidences done with the monitors. After that, this generated file can be exported. A comment can be associated with each set of evidences. This comment will be displayed in the network's status bar during or .
Types of Evidence
There are four possible types of evidence which are the same as ones obtained with the :
- Exact evidence on a state of a node
- Likelihood distribution over the states of a node
- Probability distribution over the states of a node (fixed distribution with exact inference or computation of the corresponding likelihoods with approximate inference)
- Target mean for a node (determining a probability distribution corresponding to the target mean and taking the others observations into account)
Sometimes a fixed probability distribution cannot be done because the algorithm used to reach the target distribution fails to converge. In this case the corresponding probability fixing is not done and the node comes back to its initial state. An information message is displayed in the console.
When a network is , it uses the Time variable or although it has at least a temporal node, the time step can be set by indicating its value with a positive or null integer.
It is a text file where each line is formatted with the following grammar:
for the temporal networks:
<time step> is an integer representing the time step at which the following evidences are set.
for the not temporal networks:
<semicolon> is the character ; (semicolon)
<colon> is the character : (colon)
it is possible to use directly a numerical value for a continuous node:
<variable> corresponds to the variable name, flanked by question marks, for which there is an evidence, and <state> indicates the concerned state.
When a temporal evidence file is associated with a temporal network, the evidences are taken into account each time the time meter reaches one of the specified time steps. When the file and the network are not temporal, the evidences are taken into account during interactive inference or during interactive updating.
Creating Evidences with Monitors
When the user is in validating mode, it is possible to store the evidences done on the monitors with the button located in the monitor toolbar. When a set of evidence is added, it is possible to append a comment to it thanks to the proposed dialog box.
When an evidence scenario file is created or imported, the icon is displayed in the network's status bar. The tooltip associated with this icon indicates the number of evidence sets contained in the file. A click on this button allows us to remove the association between the network and the file.
Importing/Exporting Evidence Scenario Files
The menu Data>Associate an Evidence Scenario File allows loading a file from the hard drive. Any in- valid evidence is ignored. At the end of the importation, a summary of the errors met is displayed if necessary.
The menu Data>Export an Evidence Scenario File allows saving, into a text file, the current evidence scenario file.
If an evidence scenario file is associated with the network, it is possible to use it as data source for the batch exploitation of the network: