Skip to content

Machine Learning model for heart failure prediction using LGBM Classifier.

License

Notifications You must be signed in to change notification settings

dgovor/Heart-Failure-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heart-Failure-Prediction

Machine Learning model for heart failure prediction using LGBM Classifier.

Description

This code was written in Python using a dataset provided on Kaggle. The dataset combines many observations provided by Cleveland, Hungary, Switzerland, VA Long Beach, and Stalog (Heart) Data Set. The proposed ML model was developed in order to represent one of the possible solutions for the problem.

Dataset

The provided dataset consists of 918 samples with 11 features each. The label represents whether a patient has a heart disease. This dataset is split using train_test_split into two subsets of data. One subset contains 80% of the original data and is used to train our model, second subset that is called validation subset contains the remaining 20% and is used to validate our model. The validation dataset is used to provide us with an understanding of the efficiency of our design.

Data Preprocessing

Data preprocessing consists of the following steps:

  • Check if the dataset bears any missing values;
  • All categorical features are encoded;
  • Check the correlation between features;
  • Normalize the data.

Results

To obtain the results it was decided to use LGBM Classifier. This method provided good results with accuracy of approximately 91%. Which suggests that the model works properly obtaining correct predictions for the vast majority of the data samples.

About

Machine Learning model for heart failure prediction using LGBM Classifier.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages