A minimal, production-ready set of balanced accuracy metrics for imbalanced vision/NLP tasks, implemented as plain Python scripts that you can load with evaluate from a dataset-type repo on the Hugging Face Hub.
What this is
Three drop‑in metrics that focus on fair evaluation under class imbalance:
balanced_accuracy.py — binary & multiclass balanced accuracy with options for sample_weight, threshold="auto" (Youden’s J), ignore_index… See the full description on the dataset page:
https://huggingface.co/datasets/OliverOnHF/balanced-accuracy.