enzax.mcmc
Code for MCMC-based Bayesian inference on kinetic models.
run_nuts(logdensity_fn, rng_key, init_parameters, num_warmup, num_samples, **adapt_kwargs)
Run the default NUTS algorithm with blackjax.
Source code in enzax/mcmc.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | |
ind_prior_from_truth(truth, sd)
Get a set of independent priors centered at the true parameter values.
Note that the standard deviation currently has to be the same for all parameters.
Source code in enzax/mcmc.py
66 67 68 69 70 71 72 73 | |