artiste-qb-net / quantum-fog Goto Github PK
View Code? Open in Web Editor NEWPython tools for analyzing both classical and quantum Bayesian Networks
License: Other
Python tools for analyzing both classical and quantum Bayesian Networks
License: Other
In my branch I extended the EnumerationEngine class to accept an additional argument print_format (-> screenshot). It defaults to text but when specifying HTML it produces a joint distribution table as shown in the attached screen-shot.
If you agree that this is a nice feature to have, I will incorporate this as I go along for all other print output that could be wrapped into a HTML table.
On Linux, in pycharm, the code execution of the BayesNet.py example stops at the line bnet.draw(algo_num=2) and opens a viewer, thereby masking errors with the reading and writing sample files that follows after that. Nevertheless the code will get executed after closing the window. Not the behaviour I would have expected.
Drawing should default to graphviz module when available otherwise fall back on networkx.
Pulled the latest repo to retrace these steps. The networkx rendering works, but I get the following error message:
Traceback (most recent call last):
File "/home/quax/projects/quantum-fog/graphs/BayesNet.py", line 158, in
bnet.write_dot(path1)
File "/home/quax/projects/quantum-fog/graphs/Graph.py", line 258, in write_dot
nx.write_dot(self.get_nx_graph(), path)
AttributeError: module 'networkx' has no attribute 'write_dot'
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!
I created a simple Monty Hall B-net BIF. It contains an error in the potential definition for the Monty_Opens node. This error is not caught when the BIF is loaded.
When running the Brute Force Enumeration Engine this creates unexpected results but no errors, fortunately the Join Tree Engine throws errors that show where this is coming from.
QFog should not accept an incorrect BIF file as valid input. This also merits some further investigation to see if one can create such an inconsistent graph through the API.
The corrupt/corrupting BIF file is attached.
Monty_Hall.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.