Skip to content

Commit

Permalink
TST Do not test on full cartesian product
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
  • Loading branch information
jjerphan and ogrisel committed Sep 15, 2022
1 parent 1eb5b2c commit fcf15b6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions sklearn/metrics/tests/test_pairwise_distances_reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,13 +787,15 @@ def test_n_threads_agnosticism(
)


@pytest.mark.parametrize("n_samples", [100, 1000])
@pytest.mark.parametrize("chunk_size", [50, 512, 1024])
@pytest.mark.parametrize(
"Dispatcher",
[ArgKmin, RadiusNeighbors],
pytest.mark.parametrize(
"n_samples, chunk_size, Dispatcher, dtype",
[
(100, 50, ArgKmin, np.float64),
(1024, 256, RadiusNeighbors, np.float32),
(100, 1024, ArgKmin, np.float32),
(541, 137, RadiusNeighbors, np.float64),
],
)
@pytest.mark.parametrize("dtype", [np.float64, np.float32])
def test_format_agnosticism(
global_random_seed,
Dispatcher,
Expand Down

0 comments on commit fcf15b6

Please sign in to comment.