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 | ||
| test_api.py | ||
| test_benchmark_classifier.py | ||
| test_classifier_adapters.py | ||
| test_finetune.py | ||
| test_imap_fetch.py | ||
| test_label_tool.py | ||