ReactiveBayes / RxInfer.jl

Julia package for automated Bayesian inference on a factor graph with reactive message passing
MIT License
237 stars 24 forks source link

Adjust examples to new `@initialization` macro #277

Closed wouterwln closed 2 months ago

wouterwln commented 2 months ago

Hello everyone, thanks for revamping the examples for the new release of RxInfer. Unfortunately we have another breaking change that requires a change in the examples. Luckily, this only affects the examples where we need to initialize marginals or messages. Since we're aiming to release on very short notice, we'll be employing @albertpod's favorite strategy: hostile assignment. I've made an overview of which examples need change, and I'll write a migration guide for the new syntax (ready in #278 ). This should't take more than 5 minutes per example, since most code can also be found in the tests. The assignment is merely for everyone to see the new syntax in action once before we release. I'll link the migration guide as soon as I have it ready, but if you check the tests, the code should be very straightforward.

Basic Examples

Advanced Examples

The rest I'll fix myself #280

wouterwln commented 2 months ago

Update: I'll fix all of them, thanks @HoangMHNguyen !