pymc
pymc copied to clipboard
Split MCMC and Forward sampling functions in sample.py
That file is quite long, and anyway draw
and sample_prior/posterior_predictive
behave very differently from sample
so we could separate them across two files (and same for tests). WDYT?
How would you split them? We could have a submodule sample
with prior.py
, posterior.py
(or mcmc.py
).
I was thinking forward.py
vs mcmc.py
We don't call it forward
anywhere else though, do we?
@lucianopaz does. I used to call it ancestral sampling. We do call it here: https://github.com/pymc-devs/pymc/blob/4c92adf9720f6578e51b9ef21e33c29871c67a83/pymc/sampling.py#L1619
OK, I'm fine with either.
We could move the jax sampling functionality then into that subdir too. We could also make it even more general and have inference/sampling/
and inference/vi/
.
Or just have inference
and put both in there.