compute_metrics
Compute key NLP metrics like BLEU, ROUGE, perplexity, accuracy, and macro-F1 from predictions and references offline.
Instructions
Compute BLEU, ROUGE-1/2/L, perplexity, accuracy, macro-F1 from preds and refs — pure, offline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nll | No | ||
| loss | No | ||
| refs | Yes | ||
| task | Yes | ||
| preds | Yes | ||
| logprobs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||