Turing.jl icon indicating copy to clipboard operation
Turing.jl copied to clipboard

Sanity check is missing for space of Gibbs sampler and model parameter space

Open mohamed82008 opened this issue 5 years ago • 0 comments

PR #965 introduced the ability to pass user-defined variable names. The symbols of the parameters of a model is therefore no longer baked into the type of the model. This makes it less straightforward to check the space of the model since the variable names may only be known at run-time. One solution is to run vi = VarInfo(model) and check that the keys of vi.metadata are the same as the space of the Gibbs sampler.

mohamed82008 avatar Dec 02 '19 17:12 mohamed82008