void setEvidence(String nodeId, String outcomeId)
How do I know the following setEvidence is properly set or not if there are several nodes and states need to set?
net.SetEvidence(appNodeName, StateName);
Is there any way to know setEvidence is properly set?
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Is there any way to know setEvidence is properly set?
I don't understand the question - please rephrase.
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
SetEvidence will throw an exeception if node/outcome parameters are incorrect, or evidence would be inconsistent with already entered findings. Try SetEvidence("nonexisting_node", "any_outcome_id")sez wrote:there is no return value for this void method. so if there are a lot nodes and states need to set (loop), we have to check the probabilities generated. It is hard for us to debug.