Skip to content

This repository reflects my leaning journey of supervised machine learning algorithms where i have worked on a project which aims to predict wether a person has some heart disease or not and comparing the differnet algorithms

Notifications You must be signed in to change notification settings

Chouikhi-abdallah/Supervised_machine_learning_algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Heart Disease Prediction using Machine Learning

Model Accuracies

Overview

This project aims to predict whether a patient has heart disease based on various clinical features. The dataset used contains information about patients' cardiac health, and several machine learning models are applied to classify whether a patient has heart disease or not.the code in ml_work is well commented presenting the data cleaning first then the implementation of the algorithm and the metrics of each.

Dataset

The dataset contains the following features:

  • age: Age of the patient.
  • sex: Gender of the patient (0: female, 1: male).
  • cp: Type of chest pain (0-3).
  • trestbps: Resting blood pressure.
  • chol: Serum cholesterol.
  • fbs: Fasting blood sugar > 120 mg/dl.
  • restecg: Resting electrocardiographic results.
  • thalach: Maximum heart rate achieved.
  • exang: Exercise-induced angina.
  • oldpeak: ST depression induced by exercise relative to rest.
  • slope: Slope of the peak exercise ST segment.
  • ca: Number of major vessels colored by fluoroscopy.
  • thal: Thalassemia (0 = normal; 1 = fixed defect; 2 = reversible defect).
  • target: The target variable (1 = heart disease, 0 = no heart disease).

Models Used

The following supervised learning models were implemented:

  1. Logistic Regression
  2. Naive Bayes
  3. Support Vector Machine (SVM)
  4. Decision Tree
  5. Random Forest

About

This repository reflects my leaning journey of supervised machine learning algorithms where i have worked on a project which aims to predict wether a person has some heart disease or not and comparing the differnet algorithms

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages