Skip to content

Commit

Permalink
Fix codecov in tests for array api in pairwise metrics (scikit-learn#…
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarManzoor committed May 17, 2024
1 parent e796d0a commit 48669a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sklearn/metrics/tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1896,6 +1896,10 @@ def check_array_api_metric_pairwise(metric, array_namespace, device, dtype_name)

metric_kwargs = {}
if "dense_output" in signature(metric).parameters:
metric_kwargs["dense_output"] = False
check_array_api_metric(
metric, array_namespace, device, dtype_name, a_np=X_np, b_np=Y_np
)
metric_kwargs["dense_output"] = True

check_array_api_metric(
Expand Down

0 comments on commit 48669a5

Please sign in to comment.