Skip to content

Fix: invwishart default logpartition - #305

Open
docxology wants to merge 4 commits into
ReactiveBayes:mainfrom
docxology:fix/invwishart-default-logpartition
Open

Fix: invwishart default logpartition#305
docxology wants to merge 4 commits into
ReactiveBayes:mainfrom
docxology:fix/invwishart-default-logpartition

Conversation

@docxology

Copy link
Copy Markdown
Contributor

[Verified audit fix] — branch fix/invwishart-default-logpartition.

Commit: fix(InverseWishart): use logmvgamma not mvtrigamma in default-space logpartition

Changes

src/distributions/wishart_inverse.jl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Verification

Confirmed against main in the ReactiveBayes audit (Julia 1.12.6); sources verified read-only. See the branch diff.

docxology and others added 2 commits August 1, 2026 17:32
…ReactiveBayes#295)

Assert the default (mean) space log-partition equals the natural-space one.
Fails against the previous mvtrigamma-based implementation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bvdmitri

bvdmitri commented Sep 2, 2026

Copy link
Copy Markdown
Member

Confirmed. The default-space log-partition used mvtrigamma (sum of trigammas) where the analogous term needs logmvgamma — the Wishart sibling (wishart.jl:297) uses logmvgamma correctly. The fix makes default- and natural-space agree. Pushed a consistency test.

@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.00%. Comparing base (4ac4fb0) to head (23f51b3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #305      +/-   ##
==========================================
+ Coverage   83.90%   84.00%   +0.09%     
==========================================
  Files          45       45              
  Lines        4075     4075              
==========================================
+ Hits         3419     3423       +4     
+ Misses        656      652       -4     

☔ View full report in Codecov by Harness.
📢 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.

bvdmitri and others added 2 commits September 2, 2026 12:54
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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