I'm just learning about Bayesfusion and followed the tutorial for the python wrapper. I have a network learned from a data set of about 7000 columns. I have a test file with the same 7000 columns that I want to go through and set the corresponding evidence for those nodes in the network, to see the outcome of the target "Section" node. My code looks like this:
Code: Select all
for stem in dictEvidence.keys(): # about 7000 stems in each row of my Test file
if stem != "Section":
self.net.set_evidence(stem, dictEvidence[stem][key])
#Where should this line be???
self.net.update_beliefs()
Oleg