Skip to content

Commit

Permalink
Fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
fcogidi committed Jan 12, 2024
1 parent 244d164 commit 4fd59d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cyclops/evaluate/metrics/experimental/auroc.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(
)
self.max_fpr = max_fpr

def _compute_metric(self) -> Array:
def _compute_metric(self) -> Array: # type: ignore[override]
"""Compute the AUROC.""" ""
state = (
(dim_zero_cat(self.target), dim_zero_cat(self.preds)) # type: ignore[attr-defined]
Expand Down Expand Up @@ -155,7 +155,7 @@ def __init__(
)
self.average = average # type: ignore[assignment]

def _compute_metric(self) -> Array:
def _compute_metric(self) -> Array: # type: ignore[override]
"""Compute the AUROC."""
state = (
(dim_zero_cat(self.target), dim_zero_cat(self.preds)) # type: ignore[attr-defined]
Expand Down Expand Up @@ -242,7 +242,7 @@ def __init__(
)
self.average = average

def _compute_metric(self) -> Array:
def _compute_metric(self) -> Array: # type: ignore[override]
"""Compute the AUROC."""
state = (
(dim_zero_cat(self.target), dim_zero_cat(self.preds)) # type: ignore[attr-defined]
Expand Down

0 comments on commit 4fd59d1

Please sign in to comment.