-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can edward "read" a bayes network? #18
Comments
QEdward cannot load B. Nets. It only works for quantum circuits broken up into layers. I've written two models for it. To see a typical use, look at the main() at the end of Fitter.py. So, what you are trying to do would be a nice enhancement for Q Edward but not possible yet. However, I have written a baby step in your preferred direction, for classical (not quantum yet) b nets. In the folder I show how to read a bif, translate it into an Edward (classical) model, and then analyze that using the KLqp algorithm. The KLqp algorithm is the same the BBVI algorithm used by QEdward |
@rrtucci |
The bif file is in The class BayesNet is in the file BayesNet.py in the folder called graphs I follow a JAVA convention of putting one class per file and naming the class and file the same |
@rrtucci THANKS!!! |
Hi, I read your program about inference with edward, but I don't understand how to load a bayes network which is in a bif format.
Can you help me ?
THANK YOU!
The text was updated successfully, but these errors were encountered: