-
Notifications
You must be signed in to change notification settings - Fork 219
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
Add DynamicPPL integration tests #2393
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2393 +/- ##
=======================================
Coverage 86.41% 86.41%
=======================================
Files 22 22
Lines 1575 1575
=======================================
Hits 1361 1361
Misses 214 214 ☔ View full report in Codecov by Sentry. |
Pull Request Test Coverage Report for Build 12054932691Details
💛 - Coveralls |
9f8023c
to
1412416
Compare
@test all(x -> DynamicPPL.istrans(vi, x), meta.vns) | ||
DynamicPPL.invlink!!(vi, spl, model) | ||
@test all(x -> !DynamicPPL.istrans(vi, x), meta.vns) | ||
@test meta.vals ≈ v atol=1e-10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
@test meta.vals ≈ v atol=1e-10 | |
@test meta.vals ≈ v atol = 1e-10 |
@test meta.s.vals ≈ v_s atol=1e-10 | ||
@test meta.m.vals ≈ v_m atol=1e-10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
@test meta.s.vals ≈ v_s atol=1e-10 | |
@test meta.m.vals ≈ v_m atol=1e-10 | |
@test meta.s.vals ≈ v_s atol = 1e-10 | |
@test meta.m.vals ≈ v_m atol = 1e-10 |
@test meta.s.vals ≈ v_s atol=1e-10 | ||
@test meta.m.vals ≈ v_m atol=1e-10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
@test meta.s.vals ≈ v_s atol=1e-10 | |
@test meta.m.vals ≈ v_m atol=1e-10 | |
@test meta.s.vals ≈ v_s atol = 1e-10 | |
@test meta.m.vals ≈ v_m atol = 1e-10 |
This PR adds the Turing/DynamicPPL integration tests (from the
test/turing
folder in DynamicPPL) to this repository instead.The main motivation behind this PR is to ensure that the tests added here are always run whenever a new version of Turing is released, thus making it impossible to release a version of Turing that contains a buggy version of DynamicPPL. See TuringLang/DynamicPPL.jl#703 for more thorough explanation.
Some implementation details:
link!(vi, sampler)
->link!!(vi, sampler, model)
; the same withinvlink!
; andAutoReverseDiff(false)
->AutoReverseDiff(; compile=false)
).Otherwise, this is a straight copy paste.