I wrote a simpler version of the MonadSample instance that lets us view the density of running a probabilistic program given a trace. It's slower, so isn't used in MCMC, but it useful as a reference implementation, and in future, I plan to optimize it.
I wrote a simpler version of the MonadSample instance that lets us view the density of running a probabilistic program given a trace. It's slower, so isn't used in MCMC, but it useful as a reference implementation, and in future, I plan to optimize it.