Inferênce C# waper

The engine.
Post Reply
lablonsk
Posts: 32
Joined: Sat Jun 29, 2019 12:13 pm

Inferênce C# waper

Post by lablonsk » Mon Jul 22, 2019 2:21 pm

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!

shooltz[BayesFusion]
Site Admin
Posts: 1241
Joined: Mon Nov 26, 2007 5:51 pm

Re: Inferênce C# waper

Post by shooltz[BayesFusion] » Mon Jul 22, 2019 2:33 pm

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.

lablonsk
Posts: 32
Joined: Sat Jun 29, 2019 12:13 pm

Re: Inferênce C# waper

Post by lablonsk » Thu Aug 29, 2019 2:05 pm

Thanks!

Post Reply