You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
posteriordb provides a reference_draws() containing posterior samples I would like to visualize using Arviz. The data format, however, is not easily converted and at least one other person has done the dance to convert it to an InferenceData (see stan-dev/posteriordb#225).
In detail, reference_draws() returns a list (each element = a chain) of dicts (every key is a latent variable) whose values are 1D arrays (each entry corresponding to a single draw of that latent). Furthermore, multi-dimensional latents are broken out across multiple keys using array indexing notation (e.g. theta[0], theta[1], ...).
Tell us about it
posteriordb provides a
reference_draws()
containing posterior samples I would like to visualize using Arviz. The data format, however, is not easily converted and at least one other person has done the dance to convert it to anInferenceData
(see stan-dev/posteriordb#225).In detail,
reference_draws()
returns a list (each element = a chain) of dicts (every key is a latent variable) whose values are 1D arrays (each entry corresponding to a single draw of that latent). Furthermore, multi-dimensional latents are broken out across multiple keys using array indexing notation (e.g.theta[0]
,theta[1]
, ...).Thoughts on implementation
@ahartikainen has a nice implementation of this conversion at https://gist.github.com/ahartikainen/ca4ec935c78c56e2d352b8d34a286fd0 which could be added as
arviz.from_posteriordb
.The text was updated successfully, but these errors were encountered: