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

LogPDF storage issue with multi-chain methods #1700

Merged
merged 7 commits into from
Dec 19, 2024

Conversation

MichaelClerx
Copy link
Member

@MichaelClerx MichaelClerx commented Dec 18, 2024

Tests and fix for #1691

Touched a few more files than necessary, because I updated some docstrings while looking for a multi-chain method using sensitivities. There wasn't one, so I added a "fake" one for testing.

@MichaelClerx MichaelClerx marked this pull request as ready for review December 18, 2024 23:57
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (f248aa6) to head (8db1e23).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1700   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           97        97           
  Lines         9695      9699    +4     
=========================================
+ Hits          9695      9699    +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MichaelClerx
Copy link
Member Author

Very easy fix @martinjrobins !
Testing a bit more laborious but still mostly copy pasted from other tests so shouldn't be hard to review

@@ -706,7 +726,9 @@ def test_log_pdf_storage_in_memory_multi(self):
x0 = np.array(self.real_parameters) * 1.05
x1 = np.array(self.real_parameters) * 1.15
x2 = np.array(self.real_parameters) * 0.95
xs = [x0, x1, x2]
x3 = np.array(self.real_parameters) * 0.95
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bit just removes a warning because diff ev wants you to use many chains

Copy link
Member

@martinjrobins martinjrobins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great, thanks @MichaelClerx :)

@martinjrobins martinjrobins merged commit 37c4778 into main Dec 19, 2024
20 checks passed
@martinjrobins martinjrobins deleted the 1691-pints-logpdf-storage branch December 19, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants