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
It's pretty easy to make this work with logpdf, but for a more generic logdensity I think it will take some restructuring. We might need a LogdensityComputation struct that's just for internal use, and holds things we know so far about the result.
The text was updated successfully, but these errors were encountered:
Say we have a measure like
Then this works just fine:
But there's a problem. Along the way, this requires calculating
and the base measure is left as
So computing the logdensity with respect to other measures will typically require more repetitions of the
z = d.σ \ x
code, which is very inefficient.Adding some
@show
statements inlogpdf
makes this clear:Each
z = ...
is the result of solving the same linear system, three times.I got a start on fixing this, by adding a
MapsTo
combinator:It's pretty easy to make this work with
logpdf
, but for a more genericlogdensity
I think it will take some restructuring. We might need aLogdensityComputation
struct that's just for internal use, and holds things we know so far about the result.The text was updated successfully, but these errors were encountered: