How yankibtw/pneumania_detection_ml works
This repository is a collection of standalone chest-X-ray pneumonia classification experiments, not a shared application: scripts download the Kaggle dataset, process images, and report classification results. The feature-engineering experiments extract image features, select subsets, and compare classifiers; separate scripts test compression-based classification. Source excerpts are partial, so connections between independent scripts are shown only where their own code supports them.
Main entry points: finaly.py Model comparison · KNN.py KNN experiment · LR.py Logistic regression · NB.py Naive Bayes
Components 13
Feature experiments
- Model comparison
finaly.py - Image features
finaly.py - Feature selection
finaly.py
Classifiers
- KNN experiment
methods/KNN.py - Logistic regression
methods/LR.py - Naive Bayes
methods/NB.py - Random forest
methods/RF.py - SVM experiment
methods/SVM.py - Gradient boosting
methods/XBoosting.py
Compression experiments
- NCD classifier
KOL.py - Dictionary classifier
KOL_1.py
Other components
- Experiment runner
- Kaggle X-ray dataset
Connections 20
- Experiment runner → Model comparison: runs
finaly.py - Kaggle X-ray dataset → Model comparison: downloads
finaly.py - Model comparison → Image features: extracts features
finaly.py - Model comparison → Feature selection: selects features
finaly.py - Experiment runner → KNN experiment: runs
methods/KNN.py - Kaggle X-ray dataset → KNN experiment: downloads
methods/KNN.py - Experiment runner → Logistic regression: runs
methods/LR.py - Kaggle X-ray dataset → Logistic regression: downloads
methods/LR.py - Experiment runner → Naive Bayes: runs
methods/NB.py - Kaggle X-ray dataset → Naive Bayes: downloads
methods/NB.py - Experiment runner → Random forest: runs
methods/RF.py - Kaggle X-ray dataset → Random forest: downloads
methods/RF.py - Experiment runner → SVM experiment: runs
methods/SVM.py - Kaggle X-ray dataset → SVM experiment: downloads
methods/SVM.py - Experiment runner → Gradient boosting: runs
methods/XBoosting.py - Kaggle X-ray dataset → Gradient boosting: downloads
methods/XBoosting.py - Experiment runner → NCD classifier: runs
KOL.py - Kaggle X-ray dataset → NCD classifier: downloads
KOL.py - Experiment runner → Dictionary classifier: runs
KOL_1.py - Kaggle X-ray dataset → Dictionary classifier: downloads
KOL_1.py