Thanks for your help,
I've found out that approximate inference helps, but I'd like to only have to use it when exact inference fails. I've written the following code to do that:
final static int[] ALGOS = { // Algorithms to try, in order.
//Network.BayesianAlgorithmType.Lauritzen,
Network ...
Search found 4 matches
- Mon Jun 06, 2011 7:56 pm
- Forum: SMILE
- Topic: How to avoid error -42 in UpdateBeliefs in jSMILE
- Replies: 3
- Views: 5872
- Tue May 17, 2011 6:17 pm
- Forum: SMILE
- Topic: How to avoid error -42 in UpdateBeliefs in jSMILE
- Replies: 3
- Views: 5872
How to avoid error -42 in UpdateBeliefs in jSMILE
Hi,
I'm working with a network of a little less than couple hundred nodes, all of them discrete CPTs, and in my code I need to compute probabilities of the form P(X|Y) many times where Y isn't always a parent of X.
I do this by doing
net.clearAllEvidence();
net.clearAllTargets();
net.setEvidence ...
I'm working with a network of a little less than couple hundred nodes, all of them discrete CPTs, and in my code I need to compute probabilities of the form P(X|Y) many times where Y isn't always a parent of X.
I do this by doing
net.clearAllEvidence();
net.clearAllTargets();
net.setEvidence ...
- Fri Feb 25, 2011 7:26 pm
- Forum: SMILE
- Topic: DeleteNode Behavior
- Replies: 3
- Views: 6121
Re: DeleteNode Behavior
Thanks, that answers my question.
The probabilities managed by SMILE are always consistent.
By "consistent" you mean summing to 1?
I was being too vague in my last post: what I meant by "consistent" is whether P(B=1) in the resulting network will be the same as P(B=1) in the original.
Based on ...
The probabilities managed by SMILE are always consistent.
By "consistent" you mean summing to 1?
I was being too vague in my last post: what I meant by "consistent" is whether P(B=1) in the resulting network will be the same as P(B=1) in the original.
Based on ...
- Thu Feb 24, 2011 9:08 pm
- Forum: SMILE
- Topic: DeleteNode Behavior
- Replies: 3
- Views: 6121
DeleteNode Behavior
Hello,
I'm using jSMILE so this will be in Java notation but I imagine that this is language-independent.
Suppose I have a network (of discrete CPDs) where A --> B. What happens to the CPD of B when A is deleted by calling network.deleteNode( A's handle )? It doesn't seem to be documented ...
I'm using jSMILE so this will be in Java notation but I imagine that this is language-independent.
Suppose I have a network (of discrete CPDs) where A --> B. What happens to the CPD of B when A is deleted by calling network.deleteNode( A's handle )? It doesn't seem to be documented ...