Skip to content

Tanmayee2010/Heart-Attack-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heart-Attack-Prediction

It is a Graphical User Interface System which is based on tkinter library

What is Logistic Regression ?

Logistic Regression is a statistical and machine-learning techniques classifying records of a dataset based on the values of the input fields . It predicts a dependent variable based on one or more set of independent variables to predict outcomes . It can be used both for binary classification and multi-class classification.

##Objective The primary objective of this study was to classify heart disease using logistic regression model and a real-world dataset. The logistic regression algorithm was applied to a dataset of patients with heart disease to predict the presence of the disease.

Dataset

[Dataset: (https://github.com/Tanmayee2010/Heart-Attack-Prediction/blob/main/heart.csv)]

Columns Information

  • age
  • sex
  • Chest pain type (4 values)
  • Resting blood pressure
  • Serum cholestoral in mg/dl
  • Fasting blood sugar > 120 mg/dl
  • Resting electrocardiographic results (values 0,1,2)
  • Maximum heart rate achieved
  • Exercise induced angina
  • Oldpeak = ST depression induced by exercise relative to rest
  • The slope of the peak exercise ST segment
  • Number of major vessels (0-3) colored by flourosopy
  • Thal: 0 = normal; 1 = fixed defect; 2 = reversable defect

Libraries Used -

  1. Pandas (for data manipulation)
  2. Matplotlib (for data visualization)
  3. Numpy (for numerical calculation)
  4. Scikit-Learn (for data modeling)
  5. tkinter (for GUI)