Downloads · 30 days
0
krishnakantlodhi/blood-group-fingerprint-simple
blood-group-fingerprint-simple is a machine learning model from krishnakantlodhi. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
One Python file that runs the whole classical-ML pipeline end to end:
Downloads · 30 days
0
Access
Public
Updated Apr 29, 2026
Repo size
36.7 MB
Likes
0
Public
Click a slice to open those files.
.pkl36.7 MB · 100%
From the Hugging Face model README
One Python file that runs the whole classical-ML pipeline end to end:
load BMPs -> preprocess (CLAHE + Gabor) -> features (HOG/LBP/GLCM)
-> stratified 70/15/15 split -> train 6 classifiers
-> evaluate on held-out test -> save models + results.json
pip install -r requirements.txt
python main.py
First run takes ~3 minutes (preprocesses + extracts features for all 6,000 images, then trains six models). Subsequent runs reuse the feature cache and finish in ~1 minute.
cache/features.npy, cache/labels.npy — the cached feature matrixmodels/<name>.pkl — six trained sklearn pipelinesresults.json — leaderboard with per-class precision/recall/F1| Model | What it is |
|---|---|
| logistic_regression | linear, scaled, class-balanced |
| linear_svm | LinearSVC + Platt calibration (predict_proba) |
| knn_pca50 | KNN (k=11, distance-weighted) on PCA-50 |
| random_forest | 500 trees, class-balanced |
| gaussian_nb | scaled GaussianNB |
| decision_tree | max_depth=20, min_leaf=5, class-balanced |
The dataset's filenames are cluster_N_*.BMP where N matches the class —
strong evidence the labels were generated by clustering rather than real
ABO+Rh blood typing. A linear model on handcrafted features matches a deep
network on this data, which means both are fitting a dataset artifact rather
than biology. Do not use this for medical decisions.