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

more test fixes #2491

Merged
merged 12 commits into from
Feb 25, 2025
Merged

more test fixes #2491

merged 12 commits into from
Feb 25, 2025

Conversation

penelopeysm
Copy link
Member

@penelopeysm penelopeysm commented Feb 20, 2025

some more fixes to get more tests to pass, i commented on a couple of bits & the rest should be fairly self explanatory

@penelopeysm penelopeysm changed the base branch from master to py/no-ldp-ad February 20, 2025 21:22
Comment on lines -441 to +443
logdensity = DynamicPPL.setmodel(state.ldf, model, sampler.alg.adtype)
logdensity = DynamicPPL.LogDensityFunction(
model, state.ldf.varinfo, state.ldf.context; adtype=sampler.alg.adtype
)
Copy link
Member Author

Choose a reason for hiding this comment

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

setmodel technically still exists, but it doesn't take the adtype argument anymore, and i think it's clearer to reconstruct the LDF (which is what setmodel does anyway)

Comment on lines 561 to +563
@model function vdemo7()
x = Array{Real}(undef, N, N)
return x .~ [InverseGamma(2, 3) for i in 1:N]
return x ~ filldist(InverseGamma(2, 3), N, N)
Copy link
Member Author

@penelopeysm penelopeysm Feb 20, 2025

Choose a reason for hiding this comment

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

I'm kind of unsure as to whether we really need to keep the vdemoN models around. As far as I can tell, they're just legacy tests that try out different 'forms' of vectorisation and presumably the timings that are printed are meant to be some marker of their performance. But surely this is covered by DynamicPPL demo models already? I personally wouldn't mind if we just deleted the entire block

Copy link

codecov bot commented Feb 20, 2025

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 45.38%. Comparing base (ee2b148) to head (ea00f86).
Report is 1 commits behind head on mhauru/dppl-0.35.

Files with missing lines Patch % Lines
src/mcmc/sghmc.jl 0.00% 3 Missing ⚠️
Additional details and impacted files
@@                  Coverage Diff                  @@
##           mhauru/dppl-0.35    #2491       +/-   ##
=====================================================
+ Coverage             29.77%   45.38%   +15.60%     
=====================================================
  Files                    21       21               
  Lines                  1387     1397       +10     
=====================================================
+ Hits                    413      634      +221     
+ Misses                  974      763      -211     

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

@penelopeysm penelopeysm marked this pull request as ready for review February 25, 2025 14:15
Base automatically changed from py/no-ldp-ad to mhauru/dppl-0.35 February 25, 2025 14:39
@penelopeysm penelopeysm merged commit d473012 into mhauru/dppl-0.35 Feb 25, 2025
1 check failed
@penelopeysm penelopeysm deleted the py/more-dppl-fixes branch February 25, 2025 15:07
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