Skip to content

Instantly share code, notes, and snippets.

@rtbs-dev
Last active March 24, 2023 16:43
Show Gist options
  • Save rtbs-dev/1349864212b25cce91dbe5e336d794b4 to your computer and use it in GitHub Desktop.
Save rtbs-dev/1349864212b25cce91dbe5e336d794b4 to your computer and use it in GitHub Desktop.
Bayesian Network Models in PyMC3 and NetworkX
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rtbs-dev
Copy link
Author

rtbs-dev commented Jul 1, 2019

Wow, I had no idea there were comments here! Thanks to all for checking out the example. For those of you with issues/ideas (especially networkx v2 problems), check out the repository that automates a lot of the underlying mechanical/boilerplate code in this example. This notebook was really just a proof-of-concept for that repository.

I haven't gone back to the code for a while, but if there's interest I would be happy to update things to newer pymc3 features. Please see if your above issues persist in the more mature repository. Thanks!

@NelisW
Copy link

NelisW commented Jul 1, 2019 via email

@rtbs-dev
Copy link
Author

rtbs-dev commented Jul 1, 2019

@NelisW certainly, and like I said, feel free to open an issue if something works unexpectedly on that repo (as I said, it's been a while).

@eHonnef
Copy link

eHonnef commented Nov 22, 2019

If you are having issues with BN.edges['C3']['D4']['bin'], substitute for BN.edges['C3','D4']['bin'].

As described in the migration guide mentioned before

G.edge have been removed in favor of using G.nodes[n] and G.edges[u, v]

@rezaaskary
Copy link

Do you have any example for dynamic BN simulated on PYMC3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment