How harsha33983/liver-disease-detection works
LiverCare is a Django web application for submitting liver-disease risk assessments, viewing assessment results, and managing clinician history. Its main workflow validates ten clinical inputs, runs a saved machine-learning pipeline, persists a record, and presents the result. A separate model-development path builds and saves that pipeline; a management command evaluates it. The README is empty, so capabilities and relationships here rely on the source index and excerpts; links to unsampled runtime components are omitted where not established.
Main entry points: views.py Assessment views · train_model.py Model training · models.py Assessment record · models Trained model artifact
Components 14
Assessment web app
- Web routes
liver_disease_prediction/predictor/urls.py - Assessment views
liver_disease_prediction/predictor/views.py - Clinical input form
liver_disease_prediction/predictor/forms.py
Prediction runtime
- Prediction service
liver_disease_prediction/predictor/services/prediction_service.py - Trained model artifact
liver_disease_prediction/models
Model development
- Model training
liver_disease_prediction/train_model.py - ML pipeline utilities
liver_disease_prediction/model_utils.py - Training dataset
liver_disease_prediction/data - Dataset tuning
liver_disease_prediction/tune_data.py
Evaluation and records
- Assessment record
liver_disease_prediction/predictor/models.py - Application database
liver_disease_prediction/predictor/models.py - Model evaluation
liver_disease_prediction/predictor/management/commands/evaluate_model.py - Record administration
liver_disease_prediction/predictor/admin.py
Other components
- Clinician or visitor
Connections 15
- Clinician or visitor → Web routes: requests
liver_disease_prediction/predictor/urls.py - Web routes → Assessment views: dispatches
liver_disease_prediction/predictor/urls.py - Assessment views → Clinical input form: validates
liver_disease_prediction/predictor/views.py - Assessment views → Prediction service: requests prediction
liver_disease_prediction/predictor/views.py - Assessment views → Assessment record: creates and reads
liver_disease_prediction/predictor/views.py - Assessment record → Application database: persists records
liver_disease_prediction/predictor/models.py - Prediction service → Trained model artifact: loads model
liver_disease_prediction/predictor/services/prediction_service.py - Model training → ML pipeline utilities: builds pipeline
liver_disease_prediction/train_model.py - Model training → Training dataset: loads data
- Model training → Trained model artifact: saves pipeline
liver_disease_prediction/train_model.py - Dataset tuning → ML pipeline utilities: uses pipeline tools
liver_disease_prediction/tune_data.py - Dataset tuning → Training dataset: writes tuned data
liver_disease_prediction/tune_data.py - Model evaluation → Trained model artifact: loads model
liver_disease_prediction/predictor/management/commands/evaluate_model.py - Model evaluation → Training dataset: reads data
liver_disease_prediction/predictor/management/commands/evaluate_model.py - Record administration → Assessment record: administers
liver_disease_prediction/predictor/admin.py