An open API service indexing awesome lists of open source software.

https://github.com/philiptitus/stroke-prediction

This Project utilizes 3 Decision Tree Algorithms to make stroke Prediction models
https://github.com/philiptitus/stroke-prediction

decision-tree-classifier decision-trees hyperparameter-tuning random-forest-classifier sickit-learn supervised-learning xgboost xgboost-algorithm

Last synced: 2 months ago
JSON representation

This Project utilizes 3 Decision Tree Algorithms to make stroke Prediction models

Awesome Lists containing this project

README

        

# 🧠 Stroke Prediction Models

This project utilizes Kaggle's stroke prediction dataset to develop and compare three decision tree-based machine learning models:

1. **XGBoost**
2. **Random Forest**
3. **Decision Tree (scikit-learn)**

## 📂 Project Structure

- 📜 **`model.ipynb`** – Jupyter Notebook containing the implementation and comparison of the three models.
- 📜 **`README.md`** – Project documentation.
- 📜 **`requirements.txt`** – List of dependencies required to run the project.

## ⚙️ Installation

Ensure you have Python installed, then install the required dependencies using:

```bash
pip install -r requirements.txt
```

## 🚀 Usage

1. Open **`model.ipynb`** in **Jupyter Notebook** or **JupyterLab**.
2. Run the notebook cells to train, evaluate, and compare the models.
3. Analyze the results and accuracy metrics.

## 📊 Conclusion

Based on the accuracy results:

✅ **XGBoost** provides the highest accuracy.
✅ **Random Forest** performs well but is slightly less accurate than XGBoost.
⚠️ **Decision Tree** has the lowest accuracy among the three models.

## 📁 Dataset

The dataset used in this project is the **Stroke Prediction Dataset** from Kaggle. You can access it [here](https://www.kaggle.com).

## 📜 License

This project is licensed under the **MIT License**.