-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support conversion of NamedTuple-based samples to InferenceData #4
Comments
cc @tpapp |
Soss doesn't have a standard format, but uses whatever the inference engine produces. For simplicity, I sometimes post-process this to end up with either an array of named tuples or a named tuple of particles (see MonteCarloMeasurements.jl). I also have some iterator support, but that's not pinned sudden enough yet for a design spec. @chriselrod what format are you using for ProbabilityModels.jl output? |
I'd like to keep the number of supported convertors to a minimal few for now. ArviZ's |
Several PPLs/samplers that don't use
MCMCChains.Chains
to store samples (e.g. DynamicHMC.jl and Soss.jl) instead return the samplers as a vector ofNamedTuple
s (or a vector of such vectors if multiple chains are obtained). We should provide functionality for converting these data types intoInferenceData
. As a side-effect, this would add more support for Turing, since currently posterior predictive samples from Turing will usually be inNamedTuple
s instead ofChains
.The text was updated successfully, but these errors were encountered: