How would you go about marginalizing over discrete parameters in PyMC?

The recommended approach is still rewrite your model into a marginalized version, usually in a form of a mixture model (Frequently Asked Questions) There are many automatic marginalization effort going on that detects the discrete variable and marginalized them, but we dont have any solid implementation yet in PyMC3

2 Likes