Forward Sampling and conversion of the Bayesian Network to a JSON object
This script is supported by the pgmpy library. The purpose is to generate datasets for Bayesian Networks using the Forward Sampling algorithm and convert Bayesian Networks to the appropriate JSON objects.
There are three options:
- Generate dataset using Forward Sampling
- Convert a BN to JSON object
- Convert a BN to JSON object as string
Forward Sampling in Bayesian Networks
Time Complexity: Ο(M∙n∙p∙logd)
O(logd): Sampling distribution
O(p): Indexing time