Git Product home page Git Product logo

heart-diseases's Introduction

Heart disease classification

In this project, we built 2 models to classify the presence of heart disease in patients:

  1. Logistic regression.
  2. Neural Network - The same model with more layers.

The model distinguishes between 2 options: 0 โ€“ Absence of heart disease. 1 โ€“ Presence of heart disease. The data set we worked on contains files with patient details from 4 different hospitals, consisting of 75 features. We used only one data file (of Cleveland), and the 13 following features:

  1. Age: in years.
  2. Sex: 0=female, 1=male.
  3. Chest pain type:
  • Value 1: typical angina.
  • Value 2: atypical angina.
  • Value 3: non-anginal pain.
  • Value 4: asymptomatic.
  1. Resting blood pressure: in mm Hg.
  2. Serum cholesterol: in mg/dl.
  3. Fasting blood sugar > 120 mg/dl: 1 = true, 0 = false.
  4. Resting electrocardiographic results:
  • Value 0: normal.
  • Value 1: having ST-T wave abnormality.
  • Value 2: showing probable or definite left ventricular hypertrophy by Estes' criteria.
  1. Maximum heart rate achieved.
  2. Exercise induced angina: 1 = yes, 0 = no.
  3. ST depression induced by exercise relative to rest.
  4. The slope of the peak exercise ST segment:
  • Value 1: upsloping.
  • Value 2: flat.
  • Value 3: downsloping.
  1. Number of major vessels: 0/1/2/3.
  2. Thal: 3 = normal, 6 = fixed defect, 7 = reversable defect.

(Link to full description: https://archive.ics.uci.edu/ml/datasets/Heart+Disease) The file of Cleveland database contains data of 303 different patients. From this data we used 70% for train data, and the rest to testing our model. The data was divided between test and train randomly.

For model results, refer to "Assignment description.pdf" In both folders.

heart-diseases's People

Contributors

netanelhugi avatar

Watchers

James Cloos avatar

Forkers

shimon23

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.