pgmpy / pgmpy_notebook

Short Tutorial to Probabilistic Graphical Models(PGM) and pgmpy
http://pgmpy.org/
MIT License
368 stars 213 forks source link

Fixed TypeError Bug in inference examples #35

Closed tjm165 closed 4 years ago

tjm165 commented 4 years ago

The inference examples were passing evidence of type {string : string} when {string : index} was expected. As a result, this tutorial was producing a the following error: TypeError: values: must contain tuples or array-like elements of the form (hashable object, type int)

ankurankan commented 4 years ago

@tjm165 Thanks for the PR. But evidence now accepts {string: string} in the latest codebase. You can try to install the latest dev branch and it should work fine.