How yashedbin/ml_diabetes_risk_predictor works
This is a course-project diabetes-risk prediction system, not a clinical tool. Its main workflow is patient input in the Streamlit app, shared feature transformation, and predictions from selectable or all-model classifiers; a separate training workflow prepares data, fits models, and exports metrics and artifacts for the app. The README also documents notebook-based EDA and experiments. Source excerpts show the app, preprocessing, and training code; notebook implementation details were not sampled, so its internal relationships are not inferred.
Main entry points: app.py Streamlit frontend · train.py Model training · preprocessing.py Cleaning and features · models Classifier artifacts
Components 13
Data preparation
- Diabetes dataset
diabetes_prediction_dataset.csv - Cleaning and features
preprocessing.py - Train/test splits
data
Model training
- Model training
train.py - Classifier artifacts
models - Evaluation metrics
models/metrics.json
Risk prediction app
- Streamlit frontend
app.py - Patient details
app.py - Model inference
app.py - Risk results
app.py - Model comparison
app.py
Exploration
- EDA and experiments
notebook.ipynb
Other components
- User
Connections 16
- Diabetes dataset → Cleaning and features: loads and cleans
preprocessing.py - Cleaning and features → Train/test splits: saves splits
preprocessing.py - Model training → Train/test splits: loads transformed data
train.py - Model training → Cleaning and features: uses split loader
train.py - Model training → Classifier artifacts: exports models
train.py - Model training → Evaluation metrics: writes scores
train.py - User → Streamlit frontend: uses
README.md - Streamlit frontend → Patient details: collects details
app.py - Patient details → Cleaning and features: transforms features
app.py - Streamlit frontend → Classifier artifacts: loads models
app.py - Streamlit frontend → Evaluation metrics: loads metrics
app.py - Streamlit frontend → Model inference: runs selected models
app.py - Model inference → Classifier artifacts: predicts with
app.py - Model inference → Risk results: produces predictions
app.py - Streamlit frontend → Model comparison: shows comparison
app.py - User → EDA and experiments: runs EDA
README.md