Closed sonyahanson closed 7 years ago
Ahh, very similar, indeed, but I'd like to use this to improve our current Bayesian methods. My understanding (and experience) is this autoprotocol branch is not currently working. The structure of the model itself is somewhat different, but maybe this will be useful to look at.
Yes, just hoped it could be a useful template!
Haven't had a chance to return to the autoprotocol branch to debug yet.
@sonyahanson I've re-written the function to sample the pymc
model with emcee
. As several of the pymc
parameters were vectors and not single values, this required a little extra packing and re-packing. To accompany the new tool, I've written a notebook that compares sampling with emcee
and pymc
. Please let me know if you're happy for me to merge.
Looks good to me!
Added a function in
pymcmodels.py
for now. Added an ipynb where I'm trying to test this. There is currently an error at the end that I think is due to the dimension of the samples being somewhat complicated.I am following this link, which is for a considerably simpler model: http://twiecki.github.io/blog/2013/09/23/emcee-pymc/
Additionally, I realize I am not using the same sampling scheme as in the original
run_mcmc
function, which has all of the samplers for each parameter defined separately (I believe) with:Any suggestions welcome!