This GitHub project aims to predict heart disease based on various medical metrics such as age, sex, chest pain type, resting blood pressure, serum cholesterol level, fasting blood sugar, resting electrocardiographic results, maximum heart rate, exercise-induced angina, ST depression, slope of the peak exercise ST segment, number of major vessels colored by fluoroscopy, and thalassemia. The project includes a trained model that achieves an accuracy score of 86.79% on the test data.
To Predict Heart disease according to following metrics.
- 0: Typical angina
- 1: Atypical angina
- 2: Non-anginal pain
- 3: Asymptomatic
- 0: Normal
- 1: Having ST-T wave abnormality
- 2: Showing probable or definite left ventricular hypertrophy
- 0: Upsloping
- 1: Flat
- 2: Downsloping
- 0: Normal
- 1: Fixed defect
- 2: Reversible defect
======================= Accuracy Score: 86.79%
Classification Report: 0 1 accuracy macro avg weighted avg precision 0.88 0.86 0.87 0.87 0.87 recall 0.82 0.90 0.87 0.86 0.87 f1-score 0.85 0.88 0.87 0.87 0.87 support 97.00 115.00 0.87 212.00 212.00
Confusion Matrix: [[ 80 17] [ 11 104]]