ReactiveBayes / RxInfer.jl

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

Small fix to example based on John-Boik's last catch. #89

Closed wmkouw closed 1 year ago

wmkouw commented 1 year ago

In the chance constraint rule specification in the example, the current function throws an UndefVarError when the constraint is not active. This is because the parameters of the forward message, xi_fw and W_fw, are defined inside the constraint-active if block.

This PR initializes these parameters with the previously computed backward messages, outside the constraint-active if block.

Kudos to @John-Boik. I also noticed this myself when I tried applying the example to a different setting.

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB