Skip to content

Commit

Permalink
add ignore_index to default_metric_classwise
Browse files Browse the repository at this point in the history
  • Loading branch information
FrenchKrab committed May 11, 2023
1 parent 05638c7 commit 5f51b50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyannote/audio/tasks/segmentation/multilabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ def default_metric_classwise(
self,
) -> Union[Metric, Sequence[Metric], Dict[str, Metric]]:
return [
F1Score(task="binary"),
Precision(task="binary"),
Recall(task="binary"),
F1Score(task="binary", ignore_index=-1),
Precision(task="binary", ignore_index=-1),
Recall(task="binary", ignore_index=-1),
]

@cached_property
Expand Down

0 comments on commit 5f51b50

Please sign in to comment.