Skip to content

Unify src/mcmc/Inference.jl methodsย #2631

@penelopeysm

Description

@penelopeysm

There are several kinds of 'transitions' that can come out of samplers:

  • Turing.Inference.Transition is the most common one.
  • There are some other special transitions, SGLDTransition, SMCTransition, and PGTransition. These, together with Turing.Inference.Transition, get lumped under Turing.Inference.AbstractTransition. Fixed by Unify Turing Transitions, fix some testsย #2651
  • Some samplers also spit out varinfos (cough cough SampleFromPrior cough cough, and I think Prior also does this).

We should get rid of all of these conceptually similar things and just use a single Transition object.

I think this will have to wait for further changes in DynamicPPL because SampleFromPrior is not yet removed, but once that is done we can definitely get rid of the VarInfo methods.

The rest should also not be overly difficult to do.

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