Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/armanx200/diabetes_model
π A machine learning model predicting diabetes with logistic regression, feature scaling, and VIF analysis. ππ©Ί
https://github.com/armanx200/diabetes_model
arman-kianian classification data-analysis data-science data-visualization feature-engineering healthcare logistic-regression machine-learning model-evaluation predictive-modeling python scaling scikit-learn statistical-analysis statsmodels
Last synced: 10 days ago
JSON representation
π A machine learning model predicting diabetes with logistic regression, feature scaling, and VIF analysis. ππ©Ί
- Host: GitHub
- URL: https://github.com/armanx200/diabetes_model
- Owner: Armanx200
- Created: 2024-07-21T11:08:14.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-21T11:26:23.000Z (7 months ago)
- Last Synced: 2024-11-24T09:16:33.124Z (2 months ago)
- Topics: arman-kianian, classification, data-analysis, data-science, data-visualization, feature-engineering, healthcare, logistic-regression, machine-learning, model-evaluation, predictive-modeling, python, scaling, scikit-learn, statistical-analysis, statsmodels
- Language: Python
- Homepage: https://github.com/Armanx200
- Size: 1.49 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
# Diabetes Prediction Model π©Ίπ
Welcome to the Diabetes Prediction Model repository! This project is aimed at predicting diabetes using logistic regression on a dataset. Below you'll find details on how to use the model, its performance, and how to get started.
## π Project Overview
This project involves building a logistic regression model to predict diabetes based on various features. The dataset used includes information on demographics, health conditions, and lifestyle factors.
## π Getting Started
1. **Clone the Repository**
```bash
git clone https://github.com/Armanx200/Diabetes_Model.git
cd Diabetes_Model
```2. **Install Dependencies**
Ensure you have Python 3.12 or later. Install the required packages using:
```bash
pip install -r requirements.txt
```3. **Run the Model**
Execute the following script to run the model:
```bash
python Model.py
```## π Model Performance
The logistic regression model's performance is summarized below:
- **Accuracy**: 96.07%
- **Confusion Matrix**:
```
[[18140 157]
[ 629 1074]]
```
- **Classification Report**:
```
precision recall f1-score support0 0.97 0.99 0.98 18297
1 0.87 0.63 0.73 1703accuracy 0.96 20000
macro avg 0.92 0.81 0.86 20000
weighted avg 0.96 0.96 0.96 20000
```## π Visualizations
Here is a visualization of the model's performance:
![Model Performance](https://github.com/Armanx200/Diabetes_Model/blob/main/Figure.png)
## π§ Requirements
This project requires the following Python packages:
- pandas
- numpy
- matplotlib
- seaborn
- scikit-learn
- statsmodelsThese dependencies are listed in `requirements.txt`.
## π¬ Contact
Feel free to reach out if you have any questions or suggestions:
- **GitHub**: [Armanx200](https://github.com/Armanx200)
---