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

Refactor proposal.py #603

Closed junpenglao closed 10 months ago

junpenglao commented 10 months ago

Close #599.

Reduce the overloading usage of Proposal, which initially designed for subclass of HMC algorithms with trajectory building (i.e., NUTS in this case).

cc @AdrienCorenflos per discussion cc @ciguaran regarding design pattern change in prospoal.py

codecov[bot] commented 10 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (3845635) 99.14% compared to head (fcef5e1) 99.13%.

Files Patch % Lines
blackjax/mcmc/proposal.py 96.55% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #603 +/- ## ========================================== - Coverage 99.14% 99.13% -0.01% ========================================== Files 51 51 Lines 2329 2325 -4 ========================================== - Hits 2309 2305 -4 Misses 20 20 ```

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