Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 7c4311b

Browse files
Varal7DeNeutoy
authored andcommitted
Unwrap masks to tensors as well in AUC metric (#2813)
1 parent 2452492 commit 7c4311b

File tree

1 file changed

+1
-1
lines changed
  • allennlp/training/metrics

1 file changed

+1
-1
lines changed

allennlp/training/metrics/auc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __call__(self,
3737
A one-dimensional label tensor of shape (batch_size).
3838
"""
3939

40-
predictions, gold_labels = self.unwrap_to_tensors(predictions, gold_labels)
40+
predictions, gold_labels, mask = self.unwrap_to_tensors(predictions, gold_labels, mask)
4141

4242
# Sanity checks.
4343
if gold_labels.dim() != 1:

0 commit comments

Comments
 (0)