How gvahck/liverprediction works
Liverify combines a Flask-based clinical-risk demonstration with a research workflow for auditing liver-patient data, evaluating models and decision policies, and exporting a serving model. The user-facing flow accepts clinical measurements and returns a risk result; the research flow audits and prepares data, then supports nested evaluation, calibration, clinical-policy analysis, and robustness and interpretability studies. Edges reflect the excerpts, SOURCE INDEX references, or README; unsampled runtime wiring is left unasserted or marked unverified.
Main entry points: cv.py Preprocessing and metrics · export_production_model.py Production model export · server.py Flask routes · data_audit.py Data audit and cleaning
Components 18
Risk-check application
- Flask routes
Liver-Predictions/server.py - Web pages
Liver-Predictions/templates - Production model
Liver-Predictions/app/production_model.joblib
Data preparation
- Raw ILPD data
Liver-Predictions/data/raw/indian_liver_patient.csv - Data audit and cleaning
Liver-Predictions/src/data_audit.py - Processed cohorts
Liver-Predictions/data/processed
Model evaluation
- Preprocessing and metrics
Liver-Predictions/src/cv.py - Model training
Liver-Predictions/src/train_models.py - Nested model selection
Liver-Predictions/src/nested_selection.py - Imbalance and calibration
Liver-Predictions/src/imbalance_calibration.py
Clinical research
- Clinical decision analysis
Liver-Predictions/src/clinical_decision.py - Selective referral policy
Liver-Predictions/src/selective_policy.py - Statistical analysis
Liver-Predictions/src/statistical_analysis.py - Robustness experiments
Liver-Predictions/src/robustness_experiments.py - Interpretability analysis
Liver-Predictions/src/interpretability_analysis.py - Patient statistics
Liver-Predictions/src/patient_statistics.py
Model export
- Production model export
Liver-Predictions/src/export_production_model.py
Other components
- Clinician or user
Connections 17
- Clinician or user → Flask routes: submits measurements
README.md - Flask routes → Web pages: renders pages
README.md - Flask routes → Production model: loads and predicts
- Raw ILPD data → Data audit and cleaning: audits and cleans
Liver-Predictions/src/data_audit.py - Data audit and cleaning → Processed cohorts: writes cohorts
Liver-Predictions/src/data_audit.py - Model training → Preprocessing and metrics: uses evaluation utilities
Liver-Predictions/src/train_models.py - Nested model selection → Preprocessing and metrics: uses evaluation utilities
Liver-Predictions/src/nested_selection.py - Imbalance and calibration → Preprocessing and metrics: uses preprocessing
Liver-Predictions/src/imbalance_calibration.py - Clinical decision analysis → Preprocessing and metrics: uses evaluation utilities
Liver-Predictions/src/clinical_decision.py - Selective referral policy → Preprocessing and metrics: uses evaluation utilities
Liver-Predictions/src/selective_policy.py - Selective referral policy → Nested model selection: reads nested results
Liver-Predictions/src/selective_policy.py - Robustness experiments → Preprocessing and metrics: uses preprocessing
Liver-Predictions/src/robustness_experiments.py - Robustness experiments → Nested model selection: references nested results
Liver-Predictions/src/robustness_experiments.py - Statistical analysis → Preprocessing and metrics: uses preprocessing
Liver-Predictions/src/statistical_analysis.py - Production model export → Preprocessing and metrics: builds model pipeline
Liver-Predictions/src/export_production_model.py - Production model export → Data audit and cleaning: computes data hash
Liver-Predictions/src/export_production_model.py - Production model export → Production model: exports bundle
Liver-Predictions/src/export_production_model.py