-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes and improvements to experimental
Gibbs
(#2231)
* moved new Gibbs tests all into a single block * initial work on making Gibbs work with `externalsampler` * removed references to Setfield.jl * fixed crucial bug in experimental Gibbs sampler * added ground-truth comparison for Gibbs sampler on demo models * added convenience method for performing two sample KS test * use thinning to avoid OOM issues * removed incredibly slow testset that didn't really add much * removed now-redundant testset * use Anderson-Darling test instead of Kolomogorov-Smirnov to better capture tail differences + remove subsampling of chains since it doesn't really matter that when we're using aggressive thinning and test statistics based on comparing order stats * more work on testing * fixed tests * make failures of `two_sample_ad_tests` a bit more informative * make failrues of `two_sample_ad_test` produce more informative logs * additional information upon `two_sample_ad_test` failure * rename `two_sample_ad_test` to `two_sample_test` and use KS test instead * added minor test for externalsampler usage * also test AdvancedHMC samplers with Gibbs * forgot to add updates to src/mcmc/abstractmcmc.jl in previous commits * removed usage of `timeit_testset` macro * added temporary fix for externalsampler that needs to be removed once DPPL has been updated * minor reorg of two testsets * set random seeds more aggressively in an attempt to make tests more reproducible * removed hack, awaiting PR to DynamicPPL * renamed `_getmodel` to `getmodel`, `_setmodel` to `setmodel`, and `_varinfo` to `varinfo_from_logdensityfn` * missed some instances during rnenaming * fixed missing merge in initial step for experimental `Gibbs` * Always reconstruct `ADGradientWrapper` using the `adype` available in `ExternalSampler` * Test Gibbs with different adtype in externalsampler to ensure that works * Update Project.toml * Update Project.toml --------- Co-authored-by: Hong Ge <[email protected]>
- Loading branch information
Showing
6 changed files
with
342 additions
and
118 deletions.
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
Oops, something went wrong.
29a1342
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.
@JuliaRegistrator register
Release notes:
The release brought bug fixes and improvement to the new
Experimental.Gibbs
(👏 for @torfjelde 's heroic efforts)29a1342
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.
Registration pull request created: JuliaRegistries/General/111170
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: