Coder Social home page Coder Social logo

pottekkat / heart-disease-classifier Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 3.0 580.77 MB

Given clinical parameters of a patient, can we predict whether or not they have heart disease?

Home Page: https://archive.ics.uci.edu/ml/datasets/Heart+Disease

Jupyter Notebook 100.00%
heart-disease-predictor heart-disease-analysis machine-learning jupyter-notebook data-science data-visualization

heart-disease-classifier's Introduction

Predicting heart disease using Machine Learning

A machine learning model capable of predicting whether or not someone has heart disease based on their medical attributes.

  • Problem definition
  • Data
  • Evaluation
  • Features
  • Modelling
  • Experimentation

1. Problem Definition

In a statement,

Given cliical parameters of a patient, can we predict whether or not they have heart disease?

2. Data

Data obtained from the Cleavland data from the UCI Machine Learning Repository. https://archive.ics.uci.edu/ml/datasets/Heart+Disease

3. Evaluation

If we can reach 95% accuracy in predicting whether or not a patient has heart disease during the proof of concept, we will pursue the project

4. Features

Create data dictionary

  • age- age in years
  • sex- (1 = male; 0 = female)
  • cp- chest pain type
  • trestbps- resting blood pressure (in mm Hg on admission to the hospital)
  • chol- serum cholestoral in mg/dl
  • fbs- (fasting blood sugar > 120 mg/dl) (1 = true; 0 = false)
  • restecg- resting electrocardiographic results
  • thalach- maximum heart rate achieved
  • exang- exercise induced angina (1 = yes; 0 = no)
  • oldpeak- ST depression induced by exercise relative to rest
  • slope- the slope of the peak exercise ST segment
  • ca- number of major vessels (0-3) colored by flourosopy
  • thal- 3 = normal; 6 = fixed defect; 7 = reversable defect
  • target- 1 or 0

Preparing the tools

The following tools are going to be used for data analysis, manipulation and modelling:

  • pandas
  • matplotlib
  • numpy
  • scikit-learn

5. Results

Feature importance

Feature Importance

Correlation matrix

Correlation Matrix

ROC curve

ROC Curve

Please leave a โญ if you find this useful! Feel free to reach out to me for any queries!

Happy Coding!

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.