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

Refactor the ESS computation and tests in blackjax.smc #389

Closed
rlouf opened this issue Oct 26, 2022 · 0 comments · Fixed by #279
Closed

Refactor the ESS computation and tests in blackjax.smc #389

rlouf opened this issue Oct 26, 2022 · 0 comments · Fixed by #279
Labels
enhancement New feature or request refactoring Change that adds no functionality but improves code quality smc Sequential Monte Carlo samplers

Comments

@rlouf
Copy link
Member

rlouf commented Oct 26, 2022

The current computation uses a use_log flag with branching logic that either applies the formula directly, or its numerical stable version. We can default to the numerically stable one, and use jax.scipy.logaddexp instead of the custom logic.

The tests for the ESS computation and the ESS solver appear to only test equality between the numerically stable version and the other one, and as such are not really testing for anything. Current tests should be replaced.

@rlouf rlouf added enhancement New feature or request refactoring Change that adds no functionality but improves code quality smc Sequential Monte Carlo samplers labels Oct 26, 2022
@rlouf rlouf changed the title Refactort the ESS computation and tests in SMC Refactor the ESS computation and tests in blackjax.smc Oct 26, 2022
@rlouf rlouf linked a pull request Jan 13, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactoring Change that adds no functionality but improves code quality smc Sequential Monte Carlo samplers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant