Commit 9e5467a
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>1 parent 2707d12 commit 9e5467a
File tree
30 files changed
+1457
-1116
lines changed- .github/workflows
- src
- experimental
- mcmc
- test
- dynamicppl
- mcmc
- skipped
30 files changed
+1457
-1116
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
| 40 | + | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
1 | 17 | | |
2 | 18 | | |
3 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | | - | |
92 | 90 | | |
93 | 91 | | |
94 | 92 | | |
| |||
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
| 100 | + | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| |||
This file was deleted.
0 commit comments