Basically a continuation of an issue here: penelopeysm/FlexiChains.jl#249 (comment)
When you have a Turing output chain, if you want to access parameter γ in a flexichain draw, you have to use this syntax:
draw = rand(chain; parameters_only = true)
draw[@varname(γ)]
Would it be possible to instead allow indexing with a symbol representing the parameter:
?
If so, that might be a nice interface in certain circumstances.
Basically a continuation of an issue here: penelopeysm/FlexiChains.jl#249 (comment)
When you have a Turing output chain, if you want to access parameter
γin a flexichain draw, you have to use this syntax:Would it be possible to instead allow indexing with a symbol representing the parameter:
draw[:γ]?
If so, that might be a nice interface in certain circumstances.