How krishna-jajoo-git/patient-risk-prediction works
This is an academic patient health-risk prediction application: structured patient histories are validated, cleaned, aggregated into longitudinal features, and used to train and benchmark classifiers; the saved model then powers Streamlit assessments and dashboards. The graph preserves the documented training stages and UI capabilities. Some training and UI implementation details are unsampled, so those relationships rely on README statements; source-level relationships are limited to the supplied excerpts and SOURCE INDEX.
Main entry points: predict.py Inference engine · train.py Training and selection · data_loader.py Schema and data loader · app.py Streamlit application
Components 13
Data preparation
- Demo generator
src/generate_demo_data.py - Schema and data loader
src/data_loader.py - Data cleaning
src/preprocessing.py - Longitudinal features
src/feature_engineering.py
Model development
- Training and selection
src/train.py - Model evaluation
src/evaluation.py
Prediction experience
- Streamlit application
app.py - Inference engine
src/predict.py - Patient summaries
src/feature_engineering.py
Configuration and artifacts
- Configuration
src/config.py - Model and metrics
models
Other components
- User
- Patient records
data/raw
Connections 24
- User → Demo generator: generate demo
README.md - Demo generator → Patient records: writes synthetic data
src/generate_demo_data.py - User → Training and selection: run training
README.md - Patient records → Schema and data loader: loads and validates
README.md - Configuration → Schema and data loader: configures
src/data_loader.py - Schema and data loader → Data cleaning: cleaned by
README.md - Data cleaning → Longitudinal features: aggregated into
README.md - Configuration → Training and selection: configures
src/train.py - Training and selection → Schema and data loader: loads data
src/train.py - Training and selection → Data cleaning: cleans data
src/train.py - Training and selection → Longitudinal features: engineers features
src/train.py - Training and selection → Model evaluation: evaluates models
README.md - Training and selection → Model and metrics: saves selected model
README.md - User → Streamlit application: use dashboard
README.md - Streamlit application → Configuration: loads configuration
app.py - Streamlit application → Schema and data loader: validates uploads
app.py - Streamlit application → Inference engine: requests predictions
README.md - Inference engine → Model and metrics: loads model
src/predict.py - Inference engine → Configuration: loads configuration
src/predict.py - Inference engine → Schema and data loader: validates input
src/predict.py - Inference engine → Data cleaning: cleans history
src/predict.py - Inference engine → Longitudinal features: builds features
src/predict.py - Inference engine → Patient summaries: summarizes history
src/predict.py - Streamlit application → Model evaluation: displays benchmarks
README.md