I have been trying to make use of the SoftEvidence feature provide by smile, but for some reason I keep getting: uncaught exception error message even for the simplest code:
vector<double> evidence;
evidence.push_back(0.20);
evidence.push_back(0.80);
int ok = theNet.GetNode(success)->Value()->SetSoftEvidence(evidence);
Note: For this testing I used the net provide in the wiki tutorial.
Anyone with experience on the subject? Any ideas?
Thank you
Diana
SoftEvidence => Uncaught Exception
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: SoftEvidence => Uncaught Exception
Check the return value of GetNode call before proceeding.diana wrote:vector<double> evidence;
evidence.push_back(0.20);
evidence.push_back(0.80);
int ok = theNet.GetNode(success)->Value()->SetSoftEvidence(evidence);
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm