Open alashworth opened 5 years ago
Comment by bob-carpenter Sunday Nov 27, 2016 at 23:36 GMT
Comment by syclik Tuesday Nov 29, 2016 at 21:03 GMT
If someone wants to tackle this, start from branch: feature/issue-1751-service-methods
. That's the refactor and this will be much easier to fix from that branch.
Issue by gbiele Wednesday Oct 14, 2015 at 09:50 GMT Originally opened as https://github.com/stan-dev/stan/issues/1641
Feature Request
Category New option/function
Description Currently generated quantities are always calculated during warmup and sampling. The motivation for always calculating generated quantities is that they can be saved and examined during post-processing, which would crash if only parameters but not generated quantities would be saved during warmup. (see Bobs comments here: https://groups.google.com/d/msg/stan-users/Q-4MCXNGf54/2DEAWby8AwAJ)
However, calculating generated quantities can be computationally costly.
A "compromise" that insures no crashing when warmup samples are saved would be to selectively allow to not calculate generated quantities only when warmup samples are not saved.
Possible solutions
for example assuming there would be a variable "sampling" that has the value 0 during warmup and 1 during sampling:
Further information Related to this stan-users mailing list topic: https://groups.google.com/forum/#!topic/stan-users/Q-4MCXNGf54