You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following from a discussion on Slack #turing I am opening this issue to request the possibility to add to logp of sample from within Turing model defined with the macro @model and to discuss what the best implementation would look like.
Two suggestions so far where
Directly adding to the logp variable like this logp += log(1.0)
Having a function that handles the adding e.g. acclogpdf!(log(1.0))
@trappmartin suggested the second to be potentially the better solution as it is independent of how the logp value is reflected internally and you don't add to an "undefined" variable like in option 1.