How to reading the beliefs from a DBN

The engine.
Post Reply
YL
Posts: 3
Joined: Sun Aug 22, 2010 10:31 pm

How to reading the beliefs from a DBN

Post by YL »

Hi, all

After I followed steps list under http://rome.exp.sis.pitt.edu/forum/view ... t=223#p906, I am trying to obtain probability values of a node.

I have read a document, which shows a API like

Code: Select all

theDBN.GetNode(rain)->TemporalValue()->GetTemporalValue(rbeliefs , 7);
However, I cant find the GetTemporalValue function. Are there any equivalente functions that similar to GetTemporalValue()?

Regards,

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

Re: How to reading the beliefs from a DBN

Post by shooltz[BayesFusion] »

The draft DBN API docs at http://genie.sis.pitt.edu/forum/viewtop ... p=906#p906 do not have any references to the GetTemporalValue method (which existed in initial implementation, but was removed before the public release).

To retrieve the temporal values, use DSL_nodeValue::GetMatrix. The temporal beliefs are stored in as two-dimensional matrices. First dimension represents slice, second is for node outcomes. For example, if slice count is 20 and node has 3 outcomes, the value matrix will be 20 x 3.
Post Reply