next up previous contents
Next: Training Files for Structure Learning

Evidence Files



You can use the DataGenerator feature in the BBN module to generate an evidence file. The following example shows how to generate an evidence file using DataGenerator. The evidence file is useful for inference. You can modify the evidence bits at the first line to set evidence nodes (0 means query, 1 means evidence). You can view another sample evidence file for the asia network here.

=============================Example of using  DataGenerator============================

D:\bnj>java bbn/DataGenerator2 asia.xml asia_evidence.xml 0
 * * * DataGenerator2 * * *
Usage: java DataGenerator2 input.xml output.xml number_of_samples (0 will 
generate an evidence file)
Success!

D:\bnj>

=============================Result evidence file : asia_evidence.xml=======================

0 0 0 0 0 0 0 0
VisitAsia|Smoking|Tuberculosis|Cancer|TbOrCa|XRay|Bronchitis|Dyspnea
Visit NonSmoker Absent Present False Normal Present Present

=============================end of evidence file===========================================


KDD-Tools
Fri June 28 2002