Skip to content

Keyur3766/heart_disease_prediction

Repository files navigation

Heart Disease prediction

Key-terms : Heart Disease, Machine Learning, Classification Techniques, K-Nearest Neighbors, Logistic Regression

This project aims to build a Webpage that enables the user to find out whether he has the risk of heart disease or not. A website will automatically determine whether a person has heart disease or not using various machine learning classification techniques, such as K-nearest neighbor, Logistic Regression, Linear Regression, etc. The user must provide certain inputs, such as age, gender, cholesterol level, blood pressure level, etc. The main goal here is to find the best model with higher accuracy that can solve the problem by countering the risk of the wrong prediction.

Exploratory Data Analysis

Exploratory Data Analysis (EDA) was carried out to get more insights on the dataset. The correlation analysis of 11 attributes with the output (12th attribute in our dataset) was performed. Removing the correlation is important because the correlation between the attributes can result in false predic- tions. All the attributes have a correlation value less than 0.41 with our output. Hence we can conclude that our attributes aren’t highly correlated.

image

Confusion matrix for KNN

image

Accuracy = 72.36%

Confusion matrix for Logistic Regression

image

Accuracy = 71.68%

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published