The PyMC documentation is a little slim on the topic of defining a custom sampler, and I had to figure it out for some DisMod work over the years. Here is a minimal example of how I did it, in answer to a CrossValidated question.
MCMC in Python: How to make a custom sampler in PyMC
Comments Off on MCMC in Python: How to make a custom sampler in PyMC
Filed under MCMC