Assignment 2 Bayesian
Assignment 2 Bayesian
Construct a Bayesian network for medical data. Use this model to demonstrate the
diagnosis of heart patients using standard Heart Disease Data Set. You can use Python
ML library classes/API.
Submissions :
a. Give a brief writeup about the steps you follow along with screenshot of result
b. .py file
The Heart Disease Data Set can be found on Kaggle. Link is given below.
https://www.kaggle.com/datasets/ritwikb3/heart-disease-cleveland
About Dataset
Context
The dataset is the Cleveland Heart Disease dataset taken from the UCI repository. The dataset
consists of 303 individuals’ data. There are 14 columns in the dataset(which have been
extracted from a larger set of 75). No missing values. The classification task is to predict
whether an individual is suffering from heart disease or not. (0: absence, 1: presence)
Content
This database contains 13 attributes and a target variable. It has 8 nominal values and 5
numeric values. The detailed description of all these features is as follows:
Variable to be predicted
Absence (1) or presence (2) of heart disease
Cost Matrix
abse pres
absence 0 1
presence 50
where the rows represent the true values and the columns the predicted.
No missing values.
303 observations
Creators: