Posts tagged DEMetropolis
DEMetropolis and DEMetropolis(Z) Algorithm Comparisons
- 18 January 2023
- Category: how-to, intermediate
For continuous variables, the default PyMC sampler (
NUTS) requires that gradients are computed, which PyMC does through autodifferentiation. However, in some cases, a PyMC model may not be supplied with gradients (for example, by evaluating a numerical model outside of PyMC) and an alternative sampler is necessary. Differential evolution (DE) Metropolis samplers are an efficient choice for gradient-free inference. This notebook compares the
DEMetropolis and the
DEMetropolisZ samplers in PyMC to help determine which is a better option for a given problem.