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

documentation: use StructArrays in worked example

Open tpapp opened this issue 4 years ago • 0 comments

The design intends this usage, but it should be explicitly mentioned for new users who are not familiar with the ecosystem.

results = mcmc_with_warmup(Random.GLOBAL_RNG, ∇ℓ, 1000)
posterior = StructArray(transform.(transformation, results.chain))
posterior.some_parameter

tpapp avatar Feb 09 '22 13:02 tpapp