# Discrete Bayesian Network inference with Edward

**URL:** <https://discourse.edwardlib.org/t/discrete-bayesian-network-inference-with-edward/1106>\
**Category:** General\
**Created:** [February 27, 2020, 5:05pm UTC](https://discourse.edwardlib.org/t/discrete-bayesian-network-inference-with-edward/1106 "2020-02-27T17:05:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fahimeh](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fahimeh](https://discourse.edwardlib.org/u/fahimeh)\
**Post date:** [February 27, 2020, 5:05pm UTC](https://discourse.edwardlib.org/t/discrete-bayesian-network-inference-with-edward/1106/1 "2020-02-27T17:05:00Z")

</div>

Hi,

My goal is to use Edward library for discrete data where each node in the network has CPT instead of PDF and applying the Bayesian Network inference.

The following link aims to demo how to use Edward for discrete Bayesian Network inference, but the outputs of the inference are very different comparing the exact inference of OpenMarkov and Bayse server. Would you please help me about using Edward library for discrete data.

[https://github.com/gitathrun/Edward\_Bayesian\_Network/blob/master/Edward\_Bayesian\_Network\_Demo.ipynb](https://github.com/gitathrun/Edward_Bayesian_Network/blob/master/Edward_Bayesian_Network_Demo.ipynb)
