-
Notifications
You must be signed in to change notification settings - Fork 223
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 fixes for DynamicPPL 0.35 #2494
Open
penelopeysm
wants to merge
6
commits into
mhauru/dppl-0.35
Choose a base branch
from
py/more-dppl-0p35
base: mhauru/dppl-0.35
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fed936f
Remove test/dynamicppl/compiler.jl
penelopeysm bcd7bc2
Remove old regression tests
penelopeysm 78a14f1
Remove vdemo2
penelopeysm 1005466
Fix last test
penelopeysm 553a538
Merge branch 'mhauru/dppl-0.35' into py/more-dppl-0p35
penelopeysm c7e44b3
Merge branch 'mhauru/dppl-0.35' into py/more-dppl-0p35
penelopeysm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -440,15 +440,6 @@ using Turing | |
|
||
res = sample(StableRNG(seed), vdemo1b(x), alg, 10) | ||
|
||
@model function vdemo2(x) | ||
μ ~ MvNormal(zeros(size(x, 1)), I) | ||
@. x ~ $(MvNormal(μ, I)) | ||
end | ||
|
||
D = 2 | ||
alg = HMC(0.01, 5; adtype=adbackend) | ||
res = sample(StableRNG(seed), vdemo2(randn(D, 100)), alg, 10) | ||
|
||
# Vector assumptions | ||
N = 10 | ||
alg = HMC(0.2, 4; adtype=adbackend) | ||
|
@@ -492,7 +483,7 @@ using Turing | |
N = 3 | ||
@model function vdemo7() | ||
x = Array{Real}(undef, N, N) | ||
@. x ~ [InverseGamma(2, 3) for i in 1:N] | ||
x ~ filldist(InverseGamma(2, 3), N, N) | ||
end | ||
Comment on lines
484
to
487
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is a straightforward replacement We could also do |
||
|
||
sample(StableRNG(seed), vdemo7(), alg, 10) | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think vdemo2 can just be removed, since it just directly expands to
x .~ MvNormal
which is now forbidden, and if the point is to test interpolation inside@.
, then that should be added to the compiler tests in DynamicPPL.If you'd like me to add that test over there, let me know and I can open an issue