i spent 2.5 hours today trying to understand how pystan/rstan works. i now have a new-found respect for how much work goes into this kind of work. this is crazy.
so i think i "fixed" what was stopping us from moving forward: `stanfit4model.pyx` was not setting *any* of the variational arguments, so the call to advi/stan was failing.
now that i've fixed that, i'm faced with a more formidable task that i could use some help with.
in stan_fit.hpp the `sampler_command` function never writes anything into `holder`, thus nothing gets returned to python when we call `model.vb()`.
it seems like ben wrote a whole suite of `execute_sampling` functions, that appear to populate the holder object for sampling. (i thought i'd work with what optimization has, but i'm even more confused as a function `write_comment` appears to be what is placing the MAP estimate [sorry andrew] into the holder!)
could i get either of you on skype sometime this week to walk me through this? i think having 30 minutes of you on a screenshared session will help immensely.
once i write that missing piece, the rest of the work lies within `model.py`, but it only appears to be a few lines of code. (allen already built much of the scaffolding.)
thanks!
cheers,
alp
regarding this:
i'm pinging ben and/or allen (and/or anyone else who understands this).regarding this: