Skip to content

Add from_turing and from_soss to simplify getting auxiliary groups #132

Open
@sethaxen

Description

@sethaxen

As demonstrated in the Quickstart, generating prior, prior predictive, and posterior predictive samples for Turing and Soss, as well as log-likelihood values for Turing, is mostly boiler plate code that can be copied from the Quickstart by the user. We could eliminate the boiler plate for the user by adding from_turing and from_soss converters that take posterior samples as the first argument and an optional model keyword, e.g.

julia> from_turing(chains; model=param_mod, rng=Random.default_rng());

julia> from_soss(chain_or_multichain; model=param_mod, rng=Random.default_rng());

arviz.from_pymc3 takes a similar model keyword, which (I think) it only uses to compute log-likelihoods.

cc @cscherrer, @torfjelde

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions