GithubHelp home page GithubHelp logo

chandimap / prediction-and-analysis-of-heart-disease Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 541 KB

Identifying the relationship between heart disease and various other features using Exploratory Analysis and Predicting the presence of heart disease in patients using ML algorithms.

Home Page: https://www.kaggle.com

License: MIT License

Jupyter Notebook 100.00%

prediction-and-analysis-of-heart-disease's Introduction

This heart disease dataset from www.kaggle.com has 14 attributes.

The dataset gives a number of variables along with a target condition of having or not having heart disease.

The "target" field refers to the presence of heart disease in the patient.

The meaning of the column headers are as follows:

  1. age -: The person's age in years

  2. sex -: The person's sex (1 = male, 0 = female)

  3. cp -: The chest pain experienced (Value 1: typical angina, Value 2: atypical angina, Value 3: non-anginal pain, Value 4: asymptomatic)

  4. trestbps -: The person's resting blood pressure (mm Hg on admission to the hospital)

  5. chol -: The person's cholesterol measurement in mg/dl

  6. fbs -: The person's fasting blood sugar (> 120 mg/dl, 1 = true; 0 = false)

  7. restecg -: Resting electrocardiographic measurement (0 = normal, 1 = having ST-T wave abnormality, 2 = showing probable or definite left ventricular hypertrophy by Estes' criteria)

  8. thalach -: The person's maximum heart rate achieved

  9. exang -: Exercise induced angina (1 = yes; 0 = no)

  10. oldpeak -: ST depression induced by exercise relative to rest ('ST' relates to positions on the ECG plot. See more here)

  11. slope -: the slope of the peak exercise ST segment (Value 1: upsloping, Value 2: flat, Value 3: downsloping)

  12. ca -: The number of major vessels (0-3)

  13. thal -: A blood disorder called thalassemia (3 = normal; 6 = fixed defect; 7 = reversable defect)

  14. target -: Heart disease (0 = no, 1 = yes)

• Exploratory Data Analysis of the Heart Disease dataset was performed to identify the relationship between heart disease and various other features.

• After EDA data pre-processing was done 10 classification algorithms were used to make the predictions.

• 10 predictive models were created to predict if a a patient has heart disease or not.

• Logistic Regression, Support Vector Machine, K-Nearest Neighbors, Extra Trees Classifier, Bagging Classifier, Gradient Boosting Classifier AdaBoost Classifier, Decision Tree, Random Forest, and XGBoost were the algorithms used to create predictive models.

• XGBoost was selected as the the best classifier by comparing the performance of all the 10 classifiers. The accuracy of XGBoost is 98.54%.

prediction-and-analysis-of-heart-disease's People

Contributors

chandimap avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.