Skip to content

__getitem__ method for Trace #1646

@gszep

Description

@gszep

When using importance resampling and other methods eventually calling jax.random.categorical(key, weights) to get an array of indecies, it would be increadibly helpful to be able to call trace[indecies] which produces another trace with the sliced/indexed out traces.

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