Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace old Gibbs sampler with the experimental one. (#2328)
* Replace old Gibbs sampler with the experimental one. * Remove dead references to experimental * Remove mention of experimental from JuliaFormatter conf * Add tests for deprecated constructor * Fix deprecated Gibbs constructors. Add HISTORY entry. * Bump version to 0.35.0 * Add Gibbs constructor test for repeat samplers * Fix typo in test/mcmc/ess.jl * Use provided rng to initialise VarInfo in Gibbs * Fix a typo in GibbsContext * Fix the Gibbs sampler * Fix the Gibbs sampler more * Remove mentions of old Gibbs sampler from MH docs Co-authored-by: Penelope Yong <penelopeysm@gmail.com> * Bump DPPL to 0.28.6 * Redesign GibbsContext, work in progress * Fixing new Gibbs, adding a broken test * Document and clean up GibbsContext * Code style and docs improvements to Gibbs * Change how AdvancedHMC Gibbs state treats momenta * Remove unnecessary invlinking * Change how AdvancedHMC Gibbs state treats momenta, again * Use setparams!! rather than reset_state!! * Don't overload setparams\!\! with VarInfo * A fix for ESS in Gibbs * Remove recompute_logprob!! * Fix setparams_varinfo!! for MH * Stop hard coding the leafcontext for MH setparams_varinfo!! * Fix setparams_varinfo!! for ESS * Fix the context used by setparams_varinfo!! ESS * Add GibbsContext type stability tests * Apply suggestions from code review Co-authored-by: Tor Erlend Fjelde <tor.erlend95@gmail.com> * Add clarifying comment * Add setparams_varinfo!! type bounds * Fix an import * Style improvement * Improve GibbsContext type stability test * Add comment to constructor tests * Fix a Gibbs test * Document the methods of `varinfo` better * Check whether a sampler is a valid Gibbs component * Move varinfo methods where they belong * Fix calling of child context in GibbsContext * Fix Selectors and type stability of Gibbs * Fix broken short circuit in MH * Stop unnecessary use of Val in GibbsContext * Enforce GibbsContext being next to a leaf * Fix setparams_varinfo!! for ESS * Fix a small Gibbs bug * Fix Gibbs sampler test * Add back tests that were accidentally commented out * Relax a test tolerance * Add a Gibbs test for dynamic model with ESS * Use ESS in Gibbs DEMO_MODELS tests * Add Gibbs component call order test * Fix Gibbs linking bug, add tests * Make Gibbs constructor more flexible * Introduce RepeatSampler * Switch gold standard sample Gibbs test back to HMC I tried using ESS instead, because I thought it would test behavior a bit more broadly, given similarities between HMC and NUTS. It worked locally, but the KS test fails in one or two cases on CI. * Clean up RepeatSamplerTests preamble * Fix RepeatSampler in Gibbs bug * Rename a function in Gibbs * Test HMCDA in Gibbs tests * Simplify is_target_varname * Add suggestions from code review Co-authored-by: Tor Erlend Fjelde <tor.erlend95@gmail.com> * Add a couple of issue references * Restructure Gibbs inference tests and reduce iteration counts * Reduce another iter count in Gibbs tests * Add an info print to Gibbs tests * Use StableRNG, relax test tolerance * Fix a kwarg --------- Co-authored-by: Penelope Yong <penelopeysm@gmail.com> Co-authored-by: Tor Erlend Fjelde <tor.erlend95@gmail.com>
- Loading branch information