concept network in category probabilistic programming

This is an excerpt from Manning's book Practical Probabilistic Programming.
You can draw a diagram called a Bayesian network that shows the dependencies in the model. Bayesian networks are explained in detail in chapter 5. For now, the main point is that an edge exists in the network from one node to another if the second node depends on the first. For our spam filter so far, you get the Bayesian network shown in figure 3.7. This kind of network is called a Naïve Bayes’ model—naïve because it makes the assumption that the words are independent.
Probability software state is correct given network up = 0.8
2. Given the original network, we start by constructing the initial VE graph. This graph contains a node for every node in the network, and an undirected edge between any two nodes that are mentioned by the same factor. This includes an edge between every parent and child in the Bayesian network, as well as an edge between any two parents of the same child. For example, Subject and Material, which are both parents of Brightness, are both mentioned by the factor encoding the CPD of Brightness, so there’s an edge between them.
If you can’t avoid loops completely, it’s better to have isolated loops than a lot of loops close together. Figure 10.5 shows an example of a network that’s hard for VE. This is the image-recovery Markov network you saw in chapter 5. The figure shows a 4×4 network, but you could have hundreds or thousands of pixels along a side.
Figure 10.5. Image-recovery network, reproduced from chapter 5. VE on a grid like this is exponential in the number of pixels on a side.
![]()
Unfortunately, no matter what elimination order you choose, there’s no way to avoid adding edges that create a clique whose size is the number of pixels along the shorter dimension of the image. The cost of VE is exponential in the size of the grid. As a result, although VE works in principle for this kind of network, in practice it takes an extremely long time.