Skip to content
Snippets Groups Projects
Unverified Commit 5ccd622e authored by Clemens Giuliani's avatar Clemens Giuliani Committed by GitHub
Browse files

Switch the order of axes in the output of the samplers (#1502)


Previously the samplers were outputting arrays of shape
`(n_samples_per_chain, n_chains, ...)`, an artefact of the jax scan
being used to do the sampling, which was inconsistent with e.g.
`nk.stats.statistics` which expects `(n_chains, n_samples_per_chain,
...)`.
This PR swaps the order of the axes in the output of the samplers to
`(n_chains, n_samples_per_chain, ...)`, so that we have a consistent
order everywhere.

---------

Co-authored-by: default avatarFilippo Vicentini <filippovicentini@gmail.com>
parent af0be1e0
Loading
Showing
with 57 additions and 54 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment