composer.metrics#
A collection of common torchmetrics.
Classes
Implements F1 Scores for binary classification tasks via sklearn. |
|
Torchmetrics cross entropy loss implementation. |
|
The Dice Coefficient for evaluating image segmentation. |
|
Hugging Face compatible cross entropy loss. |
|
Computes accuracy for In-context learning (ICL) language modeling (LM) tasks. |
|
Computes accuracy for In-context learning (ICL) multiple choice (MC) tasks. |
|
Torchmetric that computes cross entropy on language modeling outputs. |
|
Turns a torch.nn Loss Module into distributed torchmetrics Metric. |
|
Computes the Mean-Average-Precision (mAP) and Mean-Average-Recall (mAR) for object detection predictions. |
|
Torchmetrics mean Intersection-over-Union (mIoU) implementation. |
|
Computes accuracy with support for masked indices. |
|
Subclasses |