GithubHelp home page GithubHelp logo

aminhajian / heart-attack Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 895 KB

Heart attack prediction project: ML-based classification using cholesterol and Fasting Blood Sugar.

Jupyter Notebook 100.00%
classification machine-learning python

heart-attack's Introduction

Heart Attack Prediction using Machine Learning

This repository contains a machine learning project for predicting the possibility of a heart attack based on parameters such as blood pressure and age. The classification models implemented in this project include:

  • K-Nearest Neighbors (KNN)
  • Decision Trees
  • Logistic Regression
  • Support Vector Machines (SVM).

Dataset

The dataset used for this project consists of several features, including blood pressure,cholesterol and Fasting Blood Sugar along with the target variable indicating whether a heart attack occurred or not. you can easily find publicly available heart attack datasets online or in machine learning libraries such as scikit-learn.

Result

After checking and changing the parameters of each of the above methods, I was able to obtain the highest percentage of accuracy for each of the methods. The methods reached the highest accuracy by using different number of features in the database. For example, KNN method was able to reach 93 percent by using 7 features, while SVM method needed 10 features to reach this level of accuracy. This shows that KNN method is more optimal. But in general, all four methods used reached the same level of accuracy (93 percent).

You can see the final result in the table below: image

heart-attack's People

Contributors

aminhajian avatar

Stargazers

Payamsaemi | پیام صائمی avatar

Watchers

 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.