-
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
Replace old Gibbs sampler with the experimental one. #2328
Open
mhauru
wants to merge
79
commits into
master
Choose a base branch
from
mhauru/change-gibbs-sampler
base: master
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
79 commits
Select commit
Hold shift + click to select a range
5948253
Replace old Gibbs sampler with the experimental one.
mhauru 5a3e4a6
Remove dead references to experimental
mhauru 09c739d
Remove mention of experimental from JuliaFormatter conf
mhauru 58ebb25
Add tests for deprecated constructor
mhauru 7715732
Fix deprecated Gibbs constructors. Add HISTORY entry.
mhauru 672f7d9
Bump version to 0.35.0
mhauru 7bf5abe
Add Gibbs constructor test for repeat samplers
mhauru 85bcfa5
Fix typo in test/mcmc/ess.jl
mhauru 6f9679a
Use provided rng to initialise VarInfo in Gibbs
mhauru f247ad9
Fix a typo in GibbsContext
mhauru a790363
Merge remote-tracking branch 'origin/master' into mhauru/change-gibbs…
mhauru d19afe1
Fix the Gibbs sampler
mhauru 19598c4
Fix the Gibbs sampler more
mhauru 71f26ca
Remove mentions of old Gibbs sampler from MH docs
mhauru 2454cf1
Merge remote-tracking branch 'origin/master' into mhauru/change-gibbs…
mhauru d0f57ac
Bump DPPL to 0.28.6
mhauru 1bd0794
Merge remote-tracking branch 'origin/master' into mhauru/change-gibbs…
mhauru 6f5b273
Merge remote-tracking branch 'origin/master' into mhauru/change-gibbs…
mhauru 74b57e7
Redesign GibbsContext, work in progress
mhauru b16daf5
Fixing new Gibbs, adding a broken test
mhauru de9e7da
Merge remote-tracking branch 'origin/master' into mhauru/change-gibbs…
mhauru af802dc
Document and clean up GibbsContext
mhauru e58d935
Code style and docs improvements to Gibbs
mhauru b8c3dcd
Change how AdvancedHMC Gibbs state treats momenta
mhauru da0b740
Remove unnecessary invlinking
mhauru d984d2b
Change how AdvancedHMC Gibbs state treats momenta, again
mhauru 410d74d
Merge remote-tracking branch 'origin/master' into mhauru/change-gibbs…
mhauru 15ee270
Merge remote-tracking branch 'origin/master' into mhauru/change-gibbs…
mhauru d52af52
Use setparams!! rather than reset_state!!
mhauru 508ac61
Don't overload setparams\!\! with VarInfo
mhauru 6ff7c59
A fix for ESS in Gibbs
mhauru 934c03e
Remove recompute_logprob!!
mhauru 93010f7
Fix setparams_varinfo!! for MH
mhauru 1576d21
Stop hard coding the leafcontext for MH setparams_varinfo!!
mhauru 96674f8
Fix setparams_varinfo!! for ESS
mhauru 69f14ce
Fix the context used by setparams_varinfo!! ESS
mhauru 00bcdd8
Add GibbsContext type stability tests
mhauru dc5b0cf
Apply suggestions from code review
mhauru 9205788
Merge remote-tracking branch 'origin/master' into mhauru/change-gibbs…
mhauru fa366d3
Add clarifying comment
mhauru 4e99870
Add setparams_varinfo!! type bounds
mhauru da7342e
Fix an import
mhauru 14decaf
Style improvement
mhauru a7317e8
Improve GibbsContext type stability test
mhauru 7e75caa
Add comment to constructor tests
mhauru 16ba3f8
Fix a Gibbs test
mhauru d35cbce
Document the methods of `varinfo` better
mhauru 5fa9458
Check whether a sampler is a valid Gibbs component
mhauru 80cc62f
Move varinfo methods where they belong
mhauru 053ecfc
Fix calling of child context in GibbsContext
mhauru d53350d
Fix Selectors and type stability of Gibbs
mhauru 5d401e1
Fix broken short circuit in MH
mhauru d57c97c
Stop unnecessary use of Val in GibbsContext
mhauru 5bebff2
Enforce GibbsContext being next to a leaf
mhauru fdf1347
Fix setparams_varinfo!! for ESS
mhauru 8e8ed0d
Fix a small Gibbs bug
mhauru 2cced8b
Fix Gibbs sampler test
mhauru e1dbf6c
Add back tests that were accidentally commented out
mhauru 41b25f8
Relax a test tolerance
mhauru 583d297
Add a Gibbs test for dynamic model with ESS
mhauru cc9510c
Use ESS in Gibbs DEMO_MODELS tests
mhauru 310bee9
Add Gibbs component call order test
mhauru 519ff02
Fix Gibbs linking bug, add tests
mhauru f9ed562
Make Gibbs constructor more flexible
mhauru 7b0d12b
Introduce RepeatSampler
mhauru 4beb463
Switch gold standard sample Gibbs test back to HMC
mhauru 1041449
Clean up RepeatSamplerTests preamble
mhauru d17e6ed
Fix RepeatSampler in Gibbs bug
mhauru d22df39
Rename a function in Gibbs
mhauru 2025ef9
Test HMCDA in Gibbs tests
mhauru 38ac128
Simplify is_target_varname
mhauru 7d6a983
Add suggestions from code review
mhauru 39c2f21
Add a couple of issue references
mhauru fa81f83
Merge remote-tracking branch 'origin/master' into mhauru/change-gibbs…
mhauru ff09591
Restructure Gibbs inference tests and reduce iteration counts
mhauru 1f5432f
Reduce another iter count in Gibbs tests
mhauru 74f6ac7
Merge remote-tracking branch 'origin/master' into mhauru/change-gibbs…
mhauru 5f21c84
Add an info print to Gibbs tests
mhauru a15ce2f
Use StableRNG, relax test tolerance
mhauru 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 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
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
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
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
This file was deleted.
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.
This looks rather awkward. Can we introduce a simple wrapper,
Repeated
and support: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.
Yes. We had a chat about a closely related issue with @torfjelde too, I'll rework the interface around this a bit.
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 introduced a wrapper sampler:
Gibbs(@varname(x) => RepeatSampler(HMC(0.01, 4), 2), @varname(y) => MH())