How charanjeet-mvn/disease-prediction-from-symptoms works
This is a small symptom-to-disease prediction demo. Its main workflow loads tabular training and test data, trains a configured classifier, saves it, then evaluates it; a separate script predicts from a hard-coded symptom vector using a saved model. The README also describes a notebook workflow using a different dataset. Source excerpts show the main script and standalone inference, but not the notebook implementation or configuration contents.
Main entry points: main.py Train and evaluate · infer.py Symptom inference · Disease-Prediction-from-Symptoms-checkpoint.ipynb Train and infer · saved_model Saved classifiers
Components 13
Training and evaluation
- Train and evaluate
main.py - Classifier selection
main.py - Validation metrics
main.py
Prediction
- Symptom inference
infer.py - Hard-coded symptoms
infer.py - Predicted disease
Data and artifacts
- Training data
dataset/training_data.csv - Test data
dataset/test_data.csv - Model configuration
config.yaml - Saved classifiers
saved_model
Notebook workflow
- Train and infer
notebook/Disease-Prediction-from-Symptoms-checkpoint.ipynb - Columbia dataset
notebook/dataset/raw_data.xlsx
Other components
- Demo user
Connections 13
- Demo user → Train and evaluate: runs training
README.md - Train and evaluate → Training data: loads data
main.py - Train and evaluate → Test data: loads data
main.py - Train and evaluate → Model configuration: reads settings
main.py - Train and evaluate → Classifier selection: selects and fits
main.py - Train and evaluate → Validation metrics: evaluates model
main.py - Train and evaluate → Saved classifiers: saves classifier
main.py - Demo user → Symptom inference: runs inference
README.md - Symptom inference → Hard-coded symptoms: builds input
infer.py - Symptom inference → Saved classifiers: loads classifier
infer.py - Symptom inference → Predicted disease: prints prediction
infer.py - Demo user → Train and infer: opens demo
README.md - Train and infer → Columbia dataset: uses dataset
README.md