Commit ee863d6
v0.39 (#1082)
* v0.39
* Update DPPL compats for benchmarks and docs
* remove merge conflict markers
* Remove `NodeTrait` (#1133)
* Remove NodeTrait
* Changelog
* Fix exports
* docs
* fix a bug
* Fix doctests
* Fix test
* tweak changelog
* FastLDF / InitContext unified (#1132)
* Fast Log Density Function
* Make it work with AD
* Optimise performance for identity VarNames
* Mark `get_range_and_linked` as having zero derivative
* Update comment
* make AD testing / benchmarking use FastLDF
* Fix tests
* Optimise away `make_evaluate_args_and_kwargs`
* const func annotation
* Disable benchmarks on non-typed-Metadata-VarInfo
* Fix `_evaluate!!` correctly to handle submodels
* Actually fix submodel evaluate
* Document thoroughly and organise code
* Support more VarInfos, make it thread-safe (?)
* fix bug in parsing ranges from metadata/VNV
* Fix get_param_eltype for TSVI
* Disable Enzyme benchmark
* Don't override _evaluate!!, that breaks ForwardDiff (sometimes)
* Move FastLDF to experimental for now
* Fix imports, add tests, etc
* More test fixes
* Fix imports / tests
* Remove AbstractFastEvalContext
* Changelog and patch bump
* Add correctness tests, fix imports
* Concretise parameter vector in tests
* Add zero-allocation tests
* Add Chairmarks as test dep
* Disable allocations tests on multi-threaded
* Fast InitContext (#1125)
* Make InitContext work with OnlyAccsVarInfo
* Do not convert NamedTuple to Dict
* remove logging
* Enable InitFromPrior and InitFromUniform too
* Fix `infer_nested_eltype` invocation
* Refactor FastLDF to use InitContext
* note init breaking change
* fix logjac sign
* workaround Mooncake segfault
* fix changelog too
* Fix get_param_eltype for context stacks
* Add a test for threaded observe
* Export init
* Remove dead code
* fix transforms for pathological distributions
* Tidy up loads of things
* fix typed_identity spelling
* fix definition order
* Improve docstrings
* Remove stray comment
* export get_param_eltype (unfortunatley)
* Add more comment
* Update comment
* Remove inlines, fix OAVI docstring
* Improve docstrings
* Simplify InitFromParams constructor
* Replace map(identity, x[:]) with [i for i in x[:]]
* Simplify implementation for InitContext/OAVI
* Add another model to allocation tests
Co-authored-by: Markus Hauru <markus@mhauru.org>
* Revert removal of dist argument (oops)
* Format
* Update some outdated bits of FastLDF docstring
* remove underscores
---------
Co-authored-by: Markus Hauru <markus@mhauru.org>
* implement `LogDensityProblems.dimension`
* forgot about capabilities...
* use interpolation in run_ad
* Improvements to benchmark outputs (#1146)
* print output
* fix
* reenable
* add more lines to guide the eye
* reorder table
* print tgrad / trel as well
* forgot this type
* Allow generation of `ParamsWithStats` from `FastLDF` plus parameters, and also `bundle_samples` (#1129)
* Implement `ParamsWithStats` for `FastLDF`
* Add comments
* Implement `bundle_samples` for ParamsWithStats -> MCMCChains
* Remove redundant comment
* don't need Statistics?
* Make FastLDF the default (#1139)
* Make FastLDF the default
* Add miscellaneous LogDensityProblems tests
* Use `init!!` instead of `fast_evaluate!!`
* Rename files, rebalance tests
* Implement `predict`, `returned`, `logjoint`, ... with `OnlyAccsVarInfo` (#1130)
* Use OnlyAccsVarInfo for many re-evaluation functions
* drop `fast_` prefix
* Add a changelog
* Improve FastLDF type stability when all parameters are linked or unlinked (#1141)
* Improve type stability when all parameters are linked or unlinked
* fix a merge conflict
* fix enzyme gc crash (locally at least)
* Fixes from review
* Make threadsafe evaluation opt-in (#1151)
* Make threadsafe evaluation opt-in
* Reduce number of type parameters in methods
* Make `warned_warn_about_threads_threads_threads_threads` shorter
* Improve `setthreadsafe` docstring
* warn on bare `@threads` as well
* fix merge
* Fix performance issues
* Use maxthreadid() in TSVI
* Move convert_eltype code to threadsafe eval function
* Point to new Turing docs page
* Add a test for setthreadsafe
* Tidy up check_model
* Apply suggestions from code review
Fix outdated docstrings
Co-authored-by: Markus Hauru <markus@mhauru.org>
* Improve warning message
* Export `requires_threadsafe`
* Add an actual docstring for `requires_threadsafe`
---------
Co-authored-by: Markus Hauru <markus@mhauru.org>
* Standardise `:lp` -> `:logjoint` (#1161)
* Standardise `:lp` -> `:logjoint`
* changelog
* fix a test
---------
Co-authored-by: Markus Hauru <mhauru@turing.ac.uk>
Co-authored-by: Markus Hauru <markus@mhauru.org>1 parent 6c615ad commit ee863d6
File tree
39 files changed
+1656
-1069
lines changed- benchmarks
- docs
- src
- ext
- src
- contexts
- test_utils
- test
- ext
- integration/enzyme
39 files changed
+1656
-1069
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
3 | 84 | | |
4 | 85 | | |
5 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
158 | | - | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
162 | 178 | | |
| 179 | + | |
163 | 180 | | |
164 | 181 | | |
165 | 182 | | |
166 | 183 | | |
167 | 184 | | |
| 185 | + | |
168 | 186 | | |
169 | | - | |
| 187 | + | |
170 | 188 | | |
171 | 189 | | |
172 | 190 | | |
| |||
183 | 201 | | |
184 | 202 | | |
185 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
186 | 208 | | |
187 | 209 | | |
188 | 210 | | |
| |||
197 | 219 | | |
198 | 220 | | |
199 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
200 | 225 | | |
201 | 226 | | |
202 | 227 | | |
| |||
212 | 237 | | |
213 | 238 | | |
214 | 239 | | |
215 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
216 | 244 | | |
217 | 245 | | |
218 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
| |||
66 | 74 | | |
67 | 75 | | |
68 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
69 | 83 | | |
70 | 84 | | |
71 | 85 | | |
| |||
170 | 184 | | |
171 | 185 | | |
172 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
173 | 193 | | |
174 | 194 | | |
175 | 195 | | |
| |||
352 | 372 | | |
353 | 373 | | |
354 | 374 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | 375 | | |
363 | 376 | | |
364 | 377 | | |
| |||
463 | 476 | | |
464 | 477 | | |
465 | 478 | | |
466 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
467 | 487 | | |
468 | 488 | | |
469 | 489 | | |
470 | | - | |
471 | | - | |
472 | 490 | | |
473 | 491 | | |
474 | 492 | | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
475 | 521 | | |
476 | 522 | | |
477 | 523 | | |
478 | 524 | | |
479 | 525 | | |
480 | 526 | | |
481 | | - | |
| 527 | + | |
482 | 528 | | |
483 | 529 | | |
484 | 530 | | |
| |||
491 | 537 | | |
492 | 538 | | |
493 | 539 | | |
| 540 | + | |
494 | 541 | | |
495 | 542 | | |
496 | | - | |
497 | | - | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
498 | 546 | | |
499 | 547 | | |
500 | 548 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 3 | + | |
| 4 | + | |
10 | 5 | | |
11 | 6 | | |
12 | 7 | | |
13 | 8 | | |
14 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
0 commit comments