This project implements an ensemble machine learning model to predict diabetes based on health metrics. The model combines Random Forest and Gradient Boosting classifiers using a Voting Classifier to achieve better accuracy and generalization.
- Dataset: The dataset contains 768 entries and 9 features such as glucose levels, BMI, and age.
- Algorithms:
- Random Forest: A bagging technique for stability and reduced overfitting.
- Gradient Boosting: A boosting technique for capturing complex patterns.
- Ensemble Technique: Soft voting to combine the strengths of both algorithms.
- Accuracy: ~75% on the test dataset.
- Metrics: Includes precision, recall, F1-score, and confusion matrix.
- Visualizations:
- Correlation Heatmap: Highlights relationships between features.
- Confusion Matrix: Displays classification results.
- Clone this repository and upload the
diabetes.csvdataset. - Open
ensemble-prediction-model-for-diabieties.ipynbin Google Colab or Jupyter Notebook. - Execute all cells to train the model and view the results.
- Python 3.7 or higher
- Libraries:
pandasseabornmatplotlibsklearn
This project is open-source and available under the MIT License.