dotnet / infer

Infer.NET is a framework for running Bayesian inference in graphical models
https://dotnet.github.io/infer/
MIT License
1.56k stars 229 forks source link

Bayesian Neural Network #408

Closed caxelrud closed 8 months ago

caxelrud commented 2 years ago

Do you have or know any example related to Bayesian Neural Network (small, shallow cases) using Infer.net?

tminka commented 2 years ago

There are no published examples, but it is pretty straightforward to write a Bayesian neural network in the Infer.NET modelling language. A few people have tried this, but the inference results were not good. I think the reason is that the message-passing style inference in Infer.NET does not handle deterministic loops, and neural networks have lots of those.