File Formats
Evidence Format
Evidence is specified in a separate file. This file has the same name as the original network file but with an added .evid suffix. For instance, problem.uai will have evidence in problem.uai.evid.
The evidence file consists of a single line. The line will begin with the number of observed variables in the sample, followed by pairs of variable and its observed value. For example, given a binary variable we specify 0 as false and 1 as true. The indexes correspond to the ones defined in the original problem file.
For our example Markov network given Model Format, if Y has been observed as having its first value and Z with its second value, the file example.uai.evid would contain the following:
2 1 0 2 1