Skip to content

Add step dimension in sampler stats for compound steps #4602

Open
@OriolAbril

Description

@OriolAbril

When using a compound step, the acceptance rate of each step function is reported separately. It would be nice to check for this at some point and pass the extra coordinate and dims to ArviZ via idata_kwargs so users can then use idata.sample_stats.accept.sel(step="Metropolis")

Caveats:

  • This is probably very specific and may not be used much (if at all), so I'd consider this far from a priority.
  • Before doing that we need to ensure that ArviZ always interprets the acceptance rate correctly and gives it the right name (the one we use in the dims dict), otherwise the info would be ignored. I think right now different things happen depending on HMC-non HMC samplers.
  • I have never used a compound step, so it's probably better if someone with some knowledge and vision on that can help

This came up in: pymc-devs/pymc-examples#94

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions