Graphical Models: Foundations of Neural Computation