Giter VIP home page Giter VIP logo

quantum-fog's People

Contributors

quaxquax avatar rrtucci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

quantum-fog's Issues

HTML table output in Jupyter

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.

screenshot from 2016-12-15 00-28-11

bnet.draw() stops code execution when opening the viewer

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.

write_dot and read_dot errors

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'

How can edward "read" a bayes network?

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!

BayesNet.read_bif can create inconsistent graph

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.