Commit f46afbf
Release 6 (#600)
* add Changelog
* Implement event handler system for message passing and callbacks (#587)
* feat: add event handler system for message passing procedure
Introduce a new event handler mechanism that allows users to hook into
the message passing procedure via `Event`, `handle_event`, and
`broadcast_event` functions. Events are broadcast before and after
message rule calls, enabling debugging and monitoring capabilities.
Key changes:
- Add `event_handler.jl` with event types and handler interfaces
- Extend `MessageMapping` to include an event handler parameter
- Support both custom handler types and NamedTuple-based handlers
- Add documentation for the events system
- Include comprehensive tests for event handler functionality
* type in docstring
* inject the event handler in the factor node activation options
* make format
* document the existing events better
* rename event handler to callbacks to better match RxInfer
* update docs
* use make format
* fix typo
* allow to merge callbacks
* allow reduce the result of the callbacks
* add per-event callback reducer
* make format
* remove test method
* start reimplement of the product of two messages
this is required to inject the callbacks properly, plus we do the breaking
release already. Could break (and improve) more things as well then
* fix initial integration with RxInfer.jl
* fix Aqua tests
* caught a small bug in RxInfer tests
* caught another bug from RxInfer.jl tests
* merge stricter formatting
* Refactor the variables, add docstrings, add labels
- `compute_product_of_messages` now accepts the `AbstractVariable`,
makes it easier to identify the variable inside the callback
* fix documentation build
* 2prev
* add before/after product of two messages callbacks
* fix failing tests
* add before/after product of messages callbacks. add before/after form constraints
* add before/after marginal compute callbacks
* add error hint in case of wrong passed callbacks
* fix test
* temporary fix for the logscale switch rule
* support Dict as callback handler
* fix warnings in the tests
* make format
* refactor to use an abstract Event{E} structure
* add new method for event_name
* use mutable fields instead
* update CHANGELOG
* Trace ID to link before and after events (#589)
* Trace ID to link before and after events
* Add allocations test
* disable some allocation tests on old julia versions
* Change sqrt to + and remove version check
* only check on julia 1.12 again
* Better trace ids (#595)
* create IDs only if callbacks are set
* fix one failing test
* make format
* Refactor addon system to annotations (#596)
* save plan
* update
* refine the plan
* refine plan 2
* implement post_product/post_rule annotations infrastructure
* reimplement the memory addon, remove old implementation
* commit new file
* make format
* update plan
* refactor the message.jl and message_tests.jl
* update marginals.jl and marginal_tests.jl
* remove old bridge functions
* refactor the rule macro and the rule generating expression
* refactor the nodes and tests
* fix remaining places where addons were used
* fix a lot of tests by hand
* fix more tests by hand
* update the plan
* finish the refactor, update the documentation with migration guide,
update CHANGELOG
* fix from RxInfer
* fix bugs caught in RxInfer
* fix documentation build
* add pretty output for input argument records
* 🤖 Auto-format Julia code (#597)
Co-authored-by: bvdmitri <6557701+bvdmitri@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: bvdmitri <6557701+bvdmitri@users.noreply.github.com>
* checkpoint
* checkpoint
* checkpoint
* make format
* fix some tests by hand
* fix more tests by hand
* local update
* fix more tests
* rename vague messagein/messageout
* make format
* major documentation upgrade
* update the CHANGELOG and migration guide
* structural documentation update, add concepts
* improve documentation for existing pages about specific nodes
* update helpers documentation
* add concepts pages
* finish the documentation overhaul
* update the docs
* update the version to 6.0.0
* rename pipeline to stream postprocessors
* update the scheduler to use stream postprocessors instead
* add postprocess marginal stream
* simplify API even further
* update docs
* make format
* fix typo in mixture nodes
* update
* add pre_rule_annotations
* add logo, update README.md
* make logo half the size in README
---------
Co-authored-by: Fons van der Plas <fonsvdplas@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: bvdmitri <6557701+bvdmitri@users.noreply.github.com>1 parent 5a1236e commit f46afbf
135 files changed
Lines changed: 7360 additions & 2519 deletions
File tree
- .github/workflows
- docs
- src
- assets
- concepts
- custom
- extra
- lib
- annotations
- nodes
- migration-guides
- ext/ReactiveMPProjectionExt/layout
- src
- addons
- annotations
- constraints
- nodes
- predefined
- delta
- layouts
- distribution
- pipeline
- postprocessors
- rules
- discrete_transition
- gamma_mixture
- mixture
- multiplication
- normal_mixture
- score
- variables
- test
- addons
- annotations
- nodes
- predefined
- delta
- pipeline
- variables
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 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 | + | |
| 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 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 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 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
90 | | - | |
91 | 92 | | |
92 | 93 | | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
0 commit comments