How to set algorithm with Java API
-
- Posts: 19
- Joined: Thu Jul 11, 2013 1:20 pm
How to set algorithm with Java API
I have a very simple network (rain, sprinkler, holmes, watson, see attached file). This works perfectly in the gui (genie), but using the java api the results are quite imprecise. In the gui I have the default settings for algorithm (Clustering, Policy Evaluation, Hybrid LW). In Java I tried the options Lauritzen (default), Henrion, Pearl, EpisSampling (for sampling it's no surprise that the values aren't exact) . When no evidence is set, the correct values for holmes are [0.728 0.272] as seen in the gui. With the java api I get [0.738 0.262]. All other nodes are correct. How can I set the same algorithm as in the gui?
- Attachments
-
- jensen_wet_grass_network.xdsl
- (2.01 KiB) Downloaded 453 times
-
- Posts: 19
- Joined: Thu Jul 11, 2013 1:20 pm
Re: How to set algorithm with Java API
I found it: I forgot to reverse the order of the parents for CPT nodes. I organize CPTs in own states, first parent to last parent states while smile organizes CPTs in own states, last parent to first parent states.