Code: Select all
cout << "Before p = " << prob << endl; // Generic probability before learning.
for (int i=0; i<max; i++ )
{
...
theNet.GetNode (forecast)->Value ()->SetEvidence (0);
theNet.UpdateBeliefs ();
...
}
cout << "After p = " << prob << endl; // New update probability after "max" iterations.
Thanks.