How subhan-bit/comparison-of-machine-learning-algorithms works
This is an early-stage Python machine-learning comparison project. The implemented path shown in source reads CSV data into a validated Dataset and defines a shared classifier training and prediction interface. The README also describes broader comparison capabilities—several algorithm families, validation methods, cost-sensitive evaluation, and multi-class reduction—but the excerpts do not show their implementations or runtime wiring. Those documented capabilities are represented separately; their links to the implemented interface are not inferred.
Main entry points: dataset.py Validated dataset · loader.py CSV loader · classifier.py Classifier base
Components 13
Data handling
- CSV loader
product/src/ml_comparison/loader.py - Validated dataset
product/src/ml_comparison/dataset.py
Classifier interface
- Classifier base
product/src/ml_comparison/classifier.py - Distance functions
product/src/ml_comparison/distances.py
Documented algorithms
- k-NN and k-d tree
product/src/ml_comparison - Decision trees
product/src/ml_comparison - Kernel neighbours
product/src/ml_comparison - Multi-class SVM
product/src/ml_comparison
Evaluation capabilities
- Hold-out testing
product/src/ml_comparison - K-fold validation
product/src/ml_comparison - ROC analysis
product/src/ml_comparison - Cost-sensitive study
product/src/ml_comparison - Multi-class reduction
product/src/ml_comparison
Connections 2
- CSV loader → Validated dataset: constructs
product/src/ml_comparison/loader.py - Classifier base → Validated dataset: trains on
product/src/ml_comparison/classifier.py