Skip to content

Commit 9028b51

Browse files
authored
MNT Fix typos in pairwise tests (scikit-learn#31651)
1 parent bd60ea7 commit 9028b51

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sklearn/metrics/tests/test_pairwise.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ def test_pairwise_parallel_array_api(
368368
):
369369
xp = _array_api_for_tests(array_namespace, device)
370370
rng = np.random.RandomState(0)
371-
# Why 5 and not more? this seems to still result in a lot of 0 vaules?
372371
X_np = np.array(5 * rng.random_sample((5, 4)), dtype=dtype_name)
373372
Y_np = np.array(5 * rng.random_sample((3, 4)), dtype=dtype_name)
374373
X_xp = xp.asarray(X_np, device=device)
@@ -450,10 +449,7 @@ def test_pairwise_kernels(metric, csr_container):
450449
"metric",
451450
["rbf", "sigmoid", "polynomial", "linear", "chi2", "additive_chi2"],
452451
)
453-
@pytest.mark.parametrize("csr_container", CSR_CONTAINERS)
454-
def test_pairwise_kernels_array_api(
455-
metric, csr_container, array_namespace, device, dtype_name
456-
):
452+
def test_pairwise_kernels_array_api(metric, array_namespace, device, dtype_name):
457453
# Test array API support in pairwise_kernels.
458454
xp = _array_api_for_tests(array_namespace, device)
459455

0 commit comments

Comments
 (0)