Skip to content

Resampling observations from a model instance #165

@phipsgabler

Description

@phipsgabler

Capturing this from Slack: appearently, there's currently no easy way to sample from the generative process via an instantiated model.

The evaluator closure internally just performs a little runtime check on the arguments to decide whether to something is not in the arguments, or missing, so you could just create a new model with the same f and defaults, but modified args.

@torfjelde suggested to change isassumption to a function that takes contexts (which would in any case be much more elegant than the current version), and provide a new context which also resamples the observations (surely that could use the same missing interface as generative sampling, so that you can also partially regenerate observations).

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