Include deterministic variables in the chain

This is a very basic question, but how can I include deterministic variables in the chain when sampling from a Turing.jl model?

The closest thing you get is Turing.generated_quantities which allows you to do a post processing step and capture the return-values conditioned on the values in a chain. This has greater flexibility at the cost of some runtime (though you’re inference is still as fast).

1 Like