Skip to content

Commit

Permalink
fix: rank_accuracy had a optional param without default None value
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioQuijanoRey committed Nov 19, 2023
1 parent 79e935e commit eb598cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def rank_accuracy(
data_loader: torch.utils.data.DataLoader,
network: torch.nn.Module,
max_examples: int,
fast_implementation: Optional[bool],
fast_implementation: Optional[bool] = None,
) -> float:
""""
Computes the rank-k accuracy metric. Thus, this only can be used when the
Expand Down

0 comments on commit eb598cf

Please sign in to comment.