Git Product home page Git Product logo

heart_disease_predictor's Introduction

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]

heart_disease_predictor's People

Contributors

alpharosto avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jayteerth123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.