Implements load_and_prepare_data (JSONL ingestion with class filtering), compute_class_weights (inverse-frequency, div-by-zero safe), compute_metrics_for_trainer (macro F1 + accuracy), and WeightedTrainer.compute_loss (**kwargs-safe for Transformers 4.38+ num_items_in_batch). All 12 tests pass. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| benchmark_classifier.py | ||
| classifier_adapters.py | ||
| finetune_classifier.py | ||