bartz.bcf.step_bcf

bartz.bcf.step_bcf(key, state)[source]

Do one BCF MCMC step.

Parameters:
  • key (Key[Array, '']) – A jax random key.

  • state (BCFState) – A BCF MCMC state, as created by init_bcf.

Returns:

BCFState – The new BCF MCMC state.

Notes

The memory of the input state is re-used for the output state, so the input state can not be used any more after calling step_bcf. All this applies outside of jax.jit.

To run the full MCMC, pass step_bcf to bartz.mcmcloop.run_mcmc as step, with BCFBurninTrace and BCFMainTrace as trace types.