Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1022 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 1022 Bytes

Bayesian Inference Model

Getting Started

Installing Python

To use the script, you will need to install Python 3.6.x and add to path:

Installing Dependencies

After cloning the project, go to the root directory:

Install the dependent libraries by typing the following in cmd/terminal:

$ pip install -r requirements.txt

Starting the Script

To run the script, go to the root directory and run python in cmd/terminal and type the following in the python console:

>>> from bayesian_main import *

Note: ensure that python refers to Python 3.6.x

Running Bayesian Inference Model on Iris Dataset (Q1a)

To run Bayesian Inference Model, type the following in the python console:

>>> run_Q1a()

Running Importance Sampling (Q1b)

To run importance sampling, type the following in the python console:

>>> run_Q1b()

Built With

  • numpy - all variables are numpy arrays