I have a Bayesian network with 255 nodes; each node has 7 states.
8 nodes have not fathers; instead each of other 247 nodes has only 2 fathers and so its CPT size is equal to 73=343.
The total CPT size for the Bayesian network is 84777, since a "double" occupies 8 bytes in the computer memory, the total size is 84777 * 8= 678216 bytes, that are 662,3203125 KB. The amount of memory (RAM) in my computer is equal to 1 GB. Why I have the following error: “Hugin ran out of memory while carrying out some operation” when I compile the network? There is an error in calculated memory? I have changed also the triangulation method, I have modify the parameters "-Xmx1024m -Xss8192 -XX:MaxPermSize=256m” in the virtual machine, but I have the same error. I attach the network.
Let n the number of root nodes (in the previous case n=8), I want use this model also with a bigger value of n and I want that each node has n+1 states. (If I have n nodes in the first level (root nodes), then the Bayesian network has 2n-1 nodes where 2n-n-1 nodes have 2 fathers and their CPT size is equal to (n+1)3 and n nodes have not fathers) . Each node calculates the max of fathers (see the attached file). How I can change the structure of the network? What can I do? My goal is to calculate the probability of a root node to be equal to its state if I insert evidence on one or more than one not-root nodes. Thank!!!
Note: I am using Hugin Researcher Version 6.7.