by oscarpc » Thu Jul 19, 2012 7:32 am
Dear colleagues,
Thank you so much for your prompt help with all my issues. As a new user, I really appreciate it. I like your software a lot.
As I continue programming, I encounter new problems. Sorry to bother you again.
Now that I have created my DBN, I have learnt its parameters with EM & set the evidences for inference, I would like to access the inference probability. That is, if I provided evidences for 4 slices, I would like to predict what is happening in the next node, the 5th.
Therefore, I need to access the probability of my last node in my DBN. How can I do that?
I read on previous posts that I have to access to the 2-dimensional DSL_Dmatrix associated with the node I want to read (DM in my case):
DSL_Dmatrix* Matrix=theNet.GetNode(handle_DM)->Value()->GetMatrix();
Once I have the matrix, I was trying to access it as Matrix[slice][outcome_index], but it doesn't work.
I also read that I can use the Matrix->operator [](), but I don't know how to use it. It says that operator accepts DSL_intArray or plain integers.
Could you please provide an example of how can I read the probabilities by using operator or what you think is more convenient to use?
In addition, I was wondering if DSL_sysCoordinates is also useful for this purpose
DSL_sysCoordinates theCoordinates(*theNet.GetNode(handle_DM)->Value());
theCoordinates.LinkTo(*theNet.GetNode(handle_DM)->Value());
Thank you so much in advance for your help.
Kind regards,
Oscar PC.