to_pyabc_prior
calibrate.to_pyabc_prior(distributions)Translate heormodel distribution specs into a pyabc prior.
Supported: Beta, Gamma, LogNormal, Normal, Uniform. Dirichlet and Fixed parameters cannot be calibrated directly; hold them constant inside the simulator instead.
Example
from heormodel.calibrate import to_pyabc_prior # doctest: +SKIP from heormodel.params import Beta prior = to_pyabc_prior({“p”: Beta(2, 8)}) # doctest: +SKIP