Good afternoon,
I'm doing inference in a RB through:
net.ReadFile("results\\dados_Garver.xdsl");
net.UpdateBeliefs();
nome_no = net.GetAllNodeIds();
string[] status;
for (int i=0; i < name_node.Length; i++)
{
status = net.GetOutcomeIds(name_node);
net.SetEvidence(name_node, status[0]);
net.UpdateBeliefs();
}
net.WriteFile("resultadoInf.xdsl");
Then I'm updating and opening in GeNIe. But the same does not update the inferences.
Please, if you can help me, I thank you!
Inferênce C# waper
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Inferênce C# waper
The evidence set with Network.SetEvidence is not saved in the .xdsl file. The core C++ library supports cases - named sets of evidence which are stored in the xdsl. However, C# wrapper does not provide this functionality.