Structure learning of Bayesian networks

If the structure is represented by some discrete parameters, doing inference is going to be a bit challenging. But otherwise you should be able to set up the model in pymc3.