Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S/acceptance probability/acceptance ratio #390

Merged

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Oct 27, 2022

In this PR I replace the use of "acceptance_probability" with "acceptance_rate" which is more generally applicable, e.g. with NUTS. Closes #290

@codecov
Copy link

codecov bot commented Oct 27, 2022

Codecov Report

Merging #390 (df3081f) into main (b2aacda) will not change coverage.
The diff coverage is 93.33%.

@@           Coverage Diff           @@
##             main     #390   +/-   ##
=======================================
  Coverage   89.74%   89.74%           
=======================================
  Files          45       45           
  Lines        2184     2184           
=======================================
  Hits         1960     1960           
  Misses        224      224           
Impacted Files Coverage Δ
blackjax/kernels.py 98.77% <ø> (ø)
blackjax/mcmc/ghmc.py 100.00% <ø> (ø)
blackjax/mcmc/trajectory.py 95.72% <ø> (ø)
blackjax/mcmc/rmh.py 96.00% <75.00%> (ø)
blackjax/adaptation/step_size.py 100.00% <100.00%> (ø)
blackjax/mcmc/hmc.py 100.00% <100.00%> (ø)
blackjax/mcmc/mala.py 100.00% <100.00%> (ø)
blackjax/mcmc/marginal_latent_gaussian.py 100.00% <100.00%> (ø)
blackjax/mcmc/nuts.py 100.00% <100.00%> (ø)
blackjax/mcmc/proposal.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@rlouf rlouf force-pushed the s/acceptance_probability/acceptance_ratio branch 2 times, most recently from 655c227 to df3081f Compare October 27, 2022 11:06
@rlouf rlouf added enhancement New feature or request refactoring Change that adds no functionality but improves code quality mcmc MCMC samplers labels Oct 27, 2022
@junpenglao junpenglao merged commit c58a97b into blackjax-devs:main Oct 27, 2022
@rlouf rlouf deleted the s/acceptance_probability/acceptance_ratio branch February 22, 2023 14:13
junpenglao pushed a commit that referenced this pull request Mar 12, 2024
* Replace `acceptance_probability` with `acceptance_rate`

The term `acceptance_rate` applies more generally.

* Clean misc docstrings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mcmc MCMC samplers refactoring Change that adds no functionality but improves code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider s/acceptance_probability/acceptance_rate
2 participants