Downloads · 30 days
0
Abdullahhhbhai/MLP-Heart-Disease-Classification
MLP-Heart-Disease-Classification is a machine learning model from Abdullahhhbhai. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains the complete code, results, and IEEE-style research report for a systematic evaluation of 18 MLP configurations on the UCI Cleveland Heart Disease dataset.
Downloads · 30 days
0
Access
Public
Updated Apr 27, 2026
Repo size
392 KB
Likes
0
Public
Click a slice to open those files.
.png3.1 MB · 96%
From the Hugging Face model README
This repository contains the complete code, results, and IEEE-style research report for a systematic evaluation of 18 MLP configurations on the UCI Cleveland Heart Disease dataset.
| Rank | Model Configuration | Accuracy | F1-Score |
|---|---|---|---|
| 🥇 1 | ReLU, 2 Layers, 30 Epochs | 83.61% | 0.6667 |
| 🥈 2 | ReLU, 2 Layers, 20 Epochs | 83.61% | 0.6154 |
| 🥉 3 | ReLU, 1 Layer, 30 Epochs | 81.97% | 0.5600 |
| 4 | Tanh, 3 Layers, 30 Epochs | 80.33% | 0.5385 |
| 5 | Tanh, 1 Layer, 30 Epochs | 80.33% | 0.5385 |
| ... | ... | ... | ... |
| 18 | Sigmoid, 3 Layers, 30 Epochs | 72.13% | 0.0000 |
Best Model: ReLU activation, 2 hidden layers (64→32), 30 epochs — 83.61% accuracy, F1=0.6667 Worst Model: Sigmoid activation, 3 hidden layers — completely failed to detect disease cases
18 total experiments combining:
Fixed settings: Batch size=32, Adam optimizer (lr=0.001), Validation split=0.2, StandardScaler normalization
├── mlp_heart_disease.py # Complete Python code (fully commented)
├── heart.csv # Heart Disease dataset
├── experiment_output.log # Full experiment console output
├── outputs/
│ ├── IEEE_Research_Report.md # Full IEEE-style research paper
│ ├── comparison_results.csv # Results table (CSV)
│ ├── detailed_results.txt # Detailed text results
│ ├── graphs/
│ │ ├── accuracy_comparison_bar.png
│ │ ├── loss_comparison_bar.png
│ │ ├── accuracy_heatmap.png
│ │ ├── epoch_comparison.png
│ │ ├── grouped_activation_comparison.png
│ │ └── top5_metrics_comparison.png
│ ├── training_curves/ # 18 accuracy & loss curve plots
│ │ ├── RELU_-_1_layer_-_20ep.png
│ │ ├── RELU_-_2_layers_-_30ep.png
│ │ └── ... (18 total)
│ └── confusion_matrices/ # 18 confusion matrix plots
│ ├── CM_RELU_-_1_layer_-_20ep.png
│ ├── CM_RELU_-_2_layers_-_30ep.png
│ └── ... (18 total)
pip install tensorflow scikit-learn pandas matplotlib seaborn numpy
python mlp_heart_disease.py
The full IEEE-style research report is available in outputs/IEEE_Research_Report.md, containing:





Built with TensorFlow 2.21, scikit-learn 1.8, Python 3.x