Call for Feedback: BayesFlow Wrapper for PyMC

Hi All,

I am one of the developers of BayesFlow, which is a multi-backend library for amortized Bayesian inference. In the latest release, we have included an alpha-version of a PyMC wrapper which lets us plug a trained continuous density estimator or a neural ratio estimator into a PyMC sampling routine:

As I am fairly new to the PyMC internals, I would like to extend an invitation for contributions and will greatly appreciate any feedback you may have in improving this / making it more general. For now, only JAX backend is supported, but I’ve coded it in anticipation for extending it with Torch/TF as well. The wrapper source code is here.

Many thanks,
Stefan

1 Like

Was great contributing to this, should open quite a few doors with little effort downstream! Curious to hear what people think.

2 Likes