In this section, we shall look at different kinds of reasoning used in a Bayes network. We shall use the Libpgm library to create a Bayes network. Libpgm reads the network information such as nodes, edges, and CPD probabilities associated with each node from a JSON-formatted file with a specific format. This JSON file is read into the
GraphSkeleton objects to create a discrete Bayesian network (which, as the name suggests, is a Bayes network where the CPDs take discrete values). The
TableCPDFactorization object is an object that wraps the discrete Bayesian network and allows us to query the CPDs in the network. The JSON file for this example,
job_interview.txt, should be placed in the same folder as the IPython ...