-
Notifications
You must be signed in to change notification settings - Fork 6
Introduction of SwapSampler
+ make TemperedSampler
a fancy version of CompositionSampler
#152
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
Merged
torfjelde
merged 90 commits into
torfjelde/abstractmcmc
from
torfjelde/tempered-sampler-rewamp
Mar 11, 2023
Merged
Changes from 16 commits
Commits
Show all changes
90 commits
Select commit
Hold shift + click to select a range
6d8e752
split the transitions and states field in TemperedState
torfjelde 9dcc810
improved internals of CompositionSampler
torfjelde 767d559
ongoing work
torfjelde 58c0376
added swap sampler
torfjelde 0487135
added ordering specification and a TemperedComposition
torfjelde 3e9dbe4
integrated work on TemperedComposition into TemperedSampler and
torfjelde d7b8096
reorederd stuff so it actually works
torfjelde 86866ac
fixed bug in swapping computation
torfjelde 1006fd8
added length implementation for MultiModel
torfjelde 4f2e20c
improved construct for TemperedSampler and added some convenience met…
torfjelde 8c7a9fd
fixed bundle_samples for Chains and TemperedTransition
torfjelde 53b7df8
fixed breaking bug in setparams_and_logprob!! for SwapState
torfjelde 4ca60ed
remove usage of adapted HMC in tests
torfjelde 92e54de
remove doubling of iterations when testing tempering
torfjelde 8bc5872
fixed bugs with MALA and tempering
torfjelde 940332d
relax atol a bit for HMC
torfjelde da47bbc
relax another atol
torfjelde 08cf069
TemperedComposition is now truly just a wrapper around a CompositionS…
torfjelde 56e709a
added method for computing roundtrips
torfjelde e4a15ec
fixed testing + added test for roundtrips
torfjelde 3371002
added docs for roundtrips method
torfjelde a1e4b7d
added some tests for SwapSampler without tempering
torfjelde 4956fd7
remove ordering from SwapSampler since it should only interact with P…
torfjelde 70f5d8c
simplified the sorting according to chains and processes
torfjelde a11f1ee
added some comments
torfjelde ee38580
some minor refactoring
torfjelde 18f8600
some refactoring + TemperedSampler now orders the samplers correctly
torfjelde 8d49045
remove expected_ordering and make ordering assumptions more explicit
torfjelde fd70d0e
relax type-constraints in state_for_chain so it also works with Tempe…
torfjelde dac7b06
removed redundant implementations of swap_attempt
torfjelde 2097bb1
rename swap_betas! to swap!
torfjelde 6ceacff
moved swap_attempt as it now requires definition of SwapSampler
torfjelde b06ddcf
removed unnecessary setparams_and_logprob!! that should never be hit
torfjelde c7c8f63
removed expected_order
torfjelde 1715eea
Apply suggestions from code review
torfjelde 8c42b82
removed unnecessary variable in tests
torfjelde a411362
Merge branch 'torfjelde/tempered-sampler-rewamp' of github.com:Turing…
torfjelde ef97a94
Update src/sampler.jl
torfjelde ed804c6
Apply suggestions from code review
torfjelde 762fb3b
removed burn-in from step in prep for AbstractMCMC improvements
torfjelde 7883f2a
remove getparams_and_logprob implementation for SwapState as it's
torfjelde a9bb0de
Merge branch 'torfjelde/tempered-sampler-rewamp' of github.com:Turing…
torfjelde cf0b27e
split the transitions and states field in TemperedState
torfjelde 96f76b6
improved internals of CompositionSampler
torfjelde 8e9af89
ongoing work
torfjelde d9424cc
added swap sampler
torfjelde 25d3518
added ordering specification and a TemperedComposition
torfjelde 61d29b2
integrated work on TemperedComposition into TemperedSampler and
torfjelde a4c2815
reorederd stuff so it actually works
torfjelde cf166d0
fixed bug in swapping computation
torfjelde d444975
added length implementation for MultiModel
torfjelde 746f3cf
improved construct for TemperedSampler and added some convenience met…
torfjelde 6df54a2
fixed bundle_samples for Chains and TemperedTransition
torfjelde 2b627bd
fixed breaking bug in setparams_and_logprob!! for SwapState
torfjelde 1b89157
remove usage of adapted HMC in tests
torfjelde 8d9e466
remove doubling of iterations when testing tempering
torfjelde a8e317a
fixed bugs with MALA and tempering
torfjelde 71b39c7
relax atol a bit for HMC
torfjelde d3d044c
relax another atol
torfjelde 1830c79
TemperedComposition is now truly just a wrapper around a CompositionS…
torfjelde 4af0e67
added method for computing roundtrips
torfjelde 63c2724
fixed testing + added test for roundtrips
torfjelde 929573f
added docs for roundtrips method
torfjelde 54f043a
added some tests for SwapSampler without tempering
torfjelde 1458e64
remove ordering from SwapSampler since it should only interact with P…
torfjelde ebb402b
simplified the sorting according to chains and processes
torfjelde b27d8cf
added some comments
torfjelde 6621ce7
some minor refactoring
torfjelde 972c2b3
some refactoring + TemperedSampler now orders the samplers correctly
torfjelde 4d9def9
remove expected_ordering and make ordering assumptions more explicit
torfjelde 7115dad
relax type-constraints in state_for_chain so it also works with Tempe…
torfjelde 05e8521
removed redundant implementations of swap_attempt
torfjelde e062ae3
rename swap_betas! to swap!
torfjelde b816459
moved swap_attempt as it now requires definition of SwapSampler
torfjelde 9466fe0
removed unnecessary setparams_and_logprob!! that should never be hit
torfjelde 442f1d1
removed expected_order
torfjelde 8e25d63
removed unnecessary variable in tests
torfjelde c344ad6
Apply suggestions from code review
torfjelde 6359e31
removed burn-in from step in prep for AbstractMCMC improvements
torfjelde 1a437f4
remove getparams_and_logprob implementation for SwapState as it's
torfjelde 262995a
Apply suggestions from code review
torfjelde 49ea8db
Merge branch 'torfjelde/tempered-sampler-rewamp' of github.com:Turing…
torfjelde f99809e
added CompositionTransition + quite a few bundle_samples with a
torfjelde 42294a1
more samples
torfjelde a0e2732
reduce requirement for ess comparison for AHMC a bit
torfjelde 15ce587
significant improvements to the simple Gaussian example, now testing
torfjelde 66ee3a7
trying to debug these tests
torfjelde 7030fce
more debug
torfjelde 3e88f9e
fixed typy
torfjelde 6aa3d09
reduce significance even further
torfjelde 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.