Search found 11 matches

by sez
Fri Oct 18, 2013 2:53 pm
Forum: SMILE
Topic: set and update VS set all evidence and update once
Replies: 2
Views: 7564

set and update VS set all evidence and update once

Just want know if there is any difference between way 1 and way 2

way 1 (set and update)
set note evidence -> update
set next note evidence -> update
. . .

way 2 (set all of evidence then update once)
set note evidence
set next note evidence
. . .

update

please advise
by sez
Fri Jun 25, 2010 5:35 pm
Forum: SMILE
Topic: API - DBN
Replies: 1
Views: 4441

Hi,

Your code apparently uses 1-based temporal indices (the loop goes from 1 to
6 with 6 slices), while Network.SetTemporalEvidence requires the temporal index to be zero-based.

The internal C++ implementation of SetTemporalEvidence simply stores the temporal index and outcome without validation ...
by sez
Thu Jun 24, 2010 5:21 pm
Forum: SMILE
Topic: API - DBN
Replies: 1
Views: 4441

API - DBN

We recently found out that the probabilities generated by API (API - DBN we received in June 2009) DID NOT match the probabilities generated by GeNie.



net. ClearAllEvidence ();
net. SliceCount = myTable.Rows.Count;

foreach (DataRow myRow in myTable.Rows)
setEvidenceProcess(myRow, actionNode ...
by sez
Tue Nov 03, 2009 12:30 am
Forum: SMILE
Topic: get the parents and children relationship at run time
Replies: 1
Views: 4938

get the parents and children relationship at run time

Is there a easy way to retrieve the structure of a BN at run time?
It seems I can use getParents/ getChildren to read node one by one in a loop and then determine the relationship. but just wonder if there is any easy way?
by sez
Wed Jun 17, 2009 8:22 pm
Forum: SMILE
Topic: Is there any way to know setEvidence is properly set?
Replies: 3
Views: 9005

Our problem has been solved.

there is no return value for this void method. so if there are a lot nodes and states need to set (loop), we have to check the probabilities generated. It is hard for us to debug.
by sez
Wed Jun 17, 2009 7:38 pm
Forum: SMILE
Topic: Is there any way to know setEvidence is properly set?
Replies: 3
Views: 9005

Is there any way to know setEvidence is properly set?

void setEvidence(String nodeId, String outcomeId)

How do I know the following setEvidence is properly set or not if there are several nodes and states need to set?
net.SetEvidence(appNodeName, StateName);
by sez
Mon Jun 15, 2009 11:05 pm
Forum: SMILE
Topic: GetOutcomeIds(handle) does not work for value node
Replies: 8
Views: 13963

Thanks

One more thing.

I guess getting the value of MAU Node is as the same as the way get Value Node mentioned above?
by sez
Mon Jun 15, 2009 10:00 pm
Forum: SMILE
Topic: GetOutcomeIds(handle) does not work for value node
Replies: 8
Views: 13963

Thanks

we have a couple of chance nodes and few value nodes.

What is the best way to get Value Node value

double expectedUtility = net.GetNodeValue("Node1");
??
by sez
Mon Jun 15, 2009 6:51 pm
Forum: SMILE
Topic: GetOutcomeIds(handle) does not work for value node
Replies: 8
Views: 13963

Also, we need to read BN file and get all of those nodes(Chance, Value),
how to identify or distinguish change node and value before the method of
GetOutcomeIds?

If it is Chance node then
use GetOutcomeIds
else
use other method


foreach (int handle in net)
{

String[] outcomeIds = net ...
by sez
Mon Jun 15, 2009 6:43 pm
Forum: SMILE
Topic: GetOutcomeIds(handle) does not work for value node
Replies: 8
Views: 13963

value node

We have several Chance nodes and Value nodes.

We need to get the value of Value Node
by sez
Mon Jun 15, 2009 5:15 pm
Forum: SMILE
Topic: GetOutcomeIds(handle) does not work for value node
Replies: 8
Views: 13963

GetOutcomeIds(handle) does not work for value node

The following code is working for chance node but not working for Value Node

error:


foreach (int handle in net)
{
String[] outcomeIds = net.GetOutcomeIds(handle);
}

Could you tell me why or is there other method I can use?