Skip to content

alpharosto/Heart_Disease_predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Heart_Disease_predictor

Heart disease prediction

Heart Disease Prediction

This project focuses on predicting heart disease using machine learning algorithms. The dataset used in this project is from the UCI Machine Learning Repository.

Overview

The goal of this project is to build machine learning models that can predict whether a patient has heart disease based on various medical attributes. We explore different algorithms such as Logistic Regression, Decision Trees, and Support Vector Machine (SVM) to achieve this objective.

Dataset

The dataset used in this project (heart.csv) contains several medical attributes such as age, sex, cholesterol levels, etc., along with a target variable indicating the presence or absence of heart disease.

Exploratory Data Analysis (EDA)

We perform exploratory data analysis to understand the distribution of variables and their relationships with the target variable. Visualizations such as bar plots, heatmap of correlations, and histograms are used to gain insights into the data.

Models Implemented

  1. Logistic Regression: We train a logistic regression model and evaluate its performance using metrics like accuracy, sensitivity, specificity, and precision.

  2. Decision Trees: Decision tree classifier is employed to predict heart disease. We analyze its performance metrics on the test set.

  3. Support Vector Machine (SVM): An SVM classifier with a linear kernel is trained and evaluated.

Testing

We test our best-performing model (Decision Tree) on sample input data to demonstrate its usage in making predictions for new patients.

Usage

To run the code:

  1. Make sure you have Python installed on your system.
  2. Install the required libraries by running pip install -r requirements.txt.
  3. Run the Jupyter notebook or Python script provided in the repository.

Contributors

  • Saurav Kharat[alpharosto]

About

Heart disease prediction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages