Hi, I am also new to Pyro and at the same stage as @perceptron.
As @perceptron said, there are some examples for Bayesian Networks (BNs) in the forum but most of them cannot be compiled without errors and they are not interpretable enough for pyro newbies. It’s really important to fully understand the basic syntax that pyro has (pyro.plate, pyro.sample and pyro.param) which I didn’t make it.
I wonder does anyone know that whether Pyro includes any structural and parameters learning for BNs, which for now, I think Pyro doesn’t include functions for these and they have to be coded manually. Also, I am really confused by the Pyro syntax for defining model (e.g., defining model structure with pyro.param and also enumerate sampling for discrete BNs) and doing inference (e.g., log_prob).
I have gone through all materials that @ewipe has been mentioned but still got errors to compile. It’s really appreciated if anyone can help and give a specific and concrete example.