log_prob =
-11251.1
log_prob =
-11710.8
> We need to get the model concept better documented. The current
> doc is here:
> https://github.com/stan-dev/stan/wiki/Model-Concept
Thanks for this pointer.
> Please update as you find errors.
I'll try my best. (I will ask you guys on Thursday about how to go about fixing small things like this: branches, hotfixes, etc.)
> Assuming I'm understanding correctly and you want to calculate
> d/dparams log_prob(g(params)),
> there are a bunch of ways you can do it.
>
> I'd suggest using the functional in stan/agrad/autodiff.hpp.
OK, thanks for this! Michael also suggested just hardcoding the derivative of the affine transform, since it's so simple. But I'm not sure if we're only going to stick with affine transforms... so for anything more complicated, I'll take the approach you suggest.
> Rebasing erases the history of your commits, which is something
> different. We want to make sure all the commits at least compile so
> that we can run git bisect to find problems when necessary. If they
> don't, then rebasing can be used --- I don't even know how to do it.
OK. I don't fully understand, but I'll stay away from rebasing for now.
> What should I look at in that branch (feature/bbvb --- you
> don't need leading/trailing slashes)?
Mainly the stuff I'm adding to /src/stan/vb and modifications to /src/stan/common/command.hpp
> The main thing that code needs is to not be in too quirky a style
> and to pass reasonable unit tests.
OK great.
Thanks guys!
Alp
Secondly: re: the log prob business, is the consensus that I use these two calls (when necessary)?
stan::model::gradient(model_, cont_params_, lp, init_grad, &std::cout);
lp = model_.template log_prob<true, true>(cont_params_, &std::cout);
Finally: re being a good citizen, not setting the world ablaze, etc... what is it exactly that I should be doing as I implement variational bayes?