🔮 Welcome to the Diabetes Prediction project! This repository predicts diabetes using the PIMA Indians Diabetes Database.
|__ data/
| |__ diabetes.csv
|
|__ gui/
| |__ gui.py
| |__ gui_ctk.py
|
|__ flask/
| |__ app.py
| |__ templates/
| |__ index.html
| |__ result.html
|
|__ api/
| |__ main.py
|
|__ streamlit/
| |__ app.py
| |__ page/
| |__ build.py
| |__ predict.py
| |__ visualize.py
|
|__ model/
| |__ model_joblib_diabetes
|
|__ Diabetes Prediction + Gradio Interface.ipynb
|__ Diabetes Prediction.ipynb
|__ EDA_of_the_dataset.ipynb
|__ LICENSE
|__ README.md
|__ .gitignore
|__ CODE_OF_CONDUCT.md
|__ CONTRIBUTING.md
-
Clone the repository:
git clone https://github.com/your-username/diabetes-prediction.git cd diabetes-prediction
-
Set up virtual environment (optional but recommended):
python -m venv .venv source .venv/bin/activate # On Windows use .venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt pip install --upgrade numpy
NOTE
Make sure you have installed numpy>=2.0.0 (pip will raise a dependency conflict error since ydata-profiling currently requires numpy<2, >=1.16 but that's not a problem for this project)
- Start Jupyter Notebook server:
jupyter notebook
- Navigate to
Diabetes Prediction.ipynb
and run the cells.
- Navigate to the
gui
folder:cd gui
- Run the GUI (Tkinter) application:
python gui.py
- Run the GUI (Custom Tkinter) application:
python gui_ctk.py
- Navigate to the
flask
folder:cd flask
- Run the flask application:
python app.py
- Navigate to the
streamlit
folder:cd streamlit
- Run the streamlit application:
streamlit run app.py
- Wait for the pages to load
- Predict from the pre-existing model
- Build your own (Random Forest Classifier) model and get insights on it
- Visualize any dataset by generating its Exploratory Data Analysis
- Navigate to the
api
folder:cd api
- Run the FastAPI application:
fastapi dev main.py
A multi-page Web Application consisting of three pages
- EDA
- Model
- Tkinter Application
- Custom Tkinter Application
- Flask Web Application
- Streamlit Application
- FastAPI API
- PIMA Indians Diabetes Database
This notebook file contains the Exploratory Data Analysis of the Diabetes Dataset. It includes the visualization that helps understand the features present in the dataset and their relation with the outcome label.
Please read our Contributing Guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
Please adhere to our Code of Conduct.
VSOC 2024 | |
This project is part of Vinyasa Summer of Code. We warmly welcome contributions from the community to help elevate Diabetes-Prediction-Using-Machine-Learning. |