Turing.jl
Turing.jl copied to clipboard
Sanity check is missing for space of Gibbs sampler and model parameter space
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.