blackjax-devs / blackjax

BlackJAX is a Bayesian Inference library designed for ease of use, speed and modularity.
https://blackjax-devs.github.io/blackjax/
Apache License 2.0
806 stars 105 forks source link

Add transform TO `run_inference_loop` #621

Closed reubenharry closed 9 months ago

reubenharry commented 10 months ago

A first step towards issue #615.

A simple change, in case a user doesn't want to store all the history of the state in a large high dimensional run, for reasons of memory.

A few important guidelines and requirements before we can merge your PR:

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (08e0d75) 99.22% compared to head (375ec14) 99.22%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #621 +/- ## ======================================= Coverage 99.22% 99.22% ======================================= Files 57 57 Lines 2581 2581 ======================================= Hits 2561 2561 Misses 20 20 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

junpenglao commented 10 months ago

Thanks! Please add a docstring (And while you are at it, could you update the docstring as well?)