Skip to content

fix mvn posterior and re-animate test - #41

Merged
kmdalton merged 2 commits into
mainfrom
mvn
Feb 18, 2026
Merged

kmdalton merged 2 commits into
mainfrom
mvn

Conversation

@kmdalton

Copy link
Copy Markdown
Member

resurrect the multivariate normal posterior which was broken when the merging model was refactored to save memory for large posteriors.

@kmdalton

Copy link
Copy Markdown
Member Author

ooof this one passed locally because it was using my GPU and tf.gather has different behavior on GPU and CPU.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.56604% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.77%. Comparing base (1a9ce29) to head (81badc0).

Files with missing lines Patch % Lines
abismal/merging/merging.py 89.13% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #41      +/-   ##
==========================================
+ Coverage   69.03%   69.77%   +0.73%     
==========================================
  Files          83       84       +1     
  Lines        3307     3421     +114     
==========================================
+ Hits         2283     2387     +104     
- Misses       1024     1034      +10     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kmdalton

Copy link
Copy Markdown
Member Author

i added a new attribute to surrogate posterior classes .independent : bool. subclasses with .independent==False will use the old style of KL divergence calculation which is statistically more appropriate. the reason we shouldn't use it for everything is that it is less efficient when the size of the surrogate posterior exceeds the number of reflections in a batch. this can happen quite easily with multiple time points.

@kmdalton
kmdalton merged commit 056582c into main Feb 18, 2026
3 checks passed
@kmdalton
kmdalton deleted the mvn branch February 18, 2026 13:48
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