Code Monkey home page Code Monkey logo

techlabs_hh_data_science's Introduction

Heart Disease Classifier

Project Overview

The data science lifecycle is designed for big data issues and the data science projects. Generally, the data science project consists of seven steps which are problem definition, data collection, data preparation, data exploration, data modeling, model evaluation and model deployment.

The goal of this project is to go through the data science lifecycle steps in order to build a heart disease classification web application by using UCI heart disease dataset. This project uses Flask API to deploy the model and build the web application.

Installation

All libraries are available in Anaconda distribution of Python.

Dataset

The dataset has 14 attributes:

  • age: age in years.
  • sex: sex (1 = male; 0 = female).
  • cp: chest pain type (Value 0: typical angina; Value 1: atypical angina; Value 2: non-anginal pain; Value 3: asymptomatic).
  • 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 (Value 0: normal; Value 1: having ST-T wave abnormality; Value 2: probable or definite left ventricular hypertrophy).
  • 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 (Value 0: upsloping; Value 1: flat; Value 2: downsloping).
  • ca: number of major vessels (0-3) colored by flourosopy.
  • thal: thalassemia (3 = normal; 6 = fixed defect; 7 = reversable defect).
  • target: heart disease (1 = no, 2 = yes).

File Descriptions

  • data.csv: the dataset file.
  • Heart_Disease_Classification.ipynb: contains the code of data exploration, preparation and modeling.
  • model.pkl: the classification model.
  • heart_disease_app.py: Flask API that bind between the classification model and the web page.
  • templates:
    • Heart Disease Classifier.html: a web page that contains a form for heart disease testing.

Data Scince Life Cycle Article

This [article] (https://medium.com/analytics-vidhya/the-lifecycle-to-build-a-web-app-for-prediction-from-scratch-bec1632b5f27) explaines the steps to build the heart disease classifier web App.

techlabs_hh_data_science's People

Contributors

abdou240 avatar

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.