tpapp / DynamicHMC.jl

Implementation of robust dynamic Hamiltonian Monte Carlo methods (NUTS) in Julia.
Other
242 stars 21 forks source link

documentation: use StructArrays in worked example #157

Open tpapp opened 2 years ago

tpapp commented 2 years ago

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