8000 TST Do not test on full cartesian product · scikit-learn/scikit-learn@fcf15b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit fcf15b6

Browse files
jjerphanogrisel
andauthored
TST Do not test on full cartesian product
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
1 parent 1eb5b2c commit fcf15b6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

sklearn/metrics/tests/test_pairwise_distances_reduction.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -787,13 +787,15 @@ def test_n_threads_agnosticism(
787787
)
788788

789789

790-
@pytest.mark.parametrize("n_samples", [100, 1000])
791-
@pytest.mark.parametrize("chunk_size", [50, 512, 1024])
792-
@pytest.mark.parametrize(
793-
"Dispatcher",
794-
[ArgKmin, RadiusNeighbors],
790+
pytest.mark.parametrize(
791+
"n_samples, chunk_size, Dispatcher, dtype",
792+
[
793+
(100, 50, ArgKmin, np.float64),
794+
(1024, 256, RadiusNeighbors, np.float32),
795+
(100, 1024, ArgKmin, np.float32),
796+
(541, 137, RadiusNeighbors, np.float64),
797+
],
795798
)
796-
@pytest.mark.parametrize("dtype", [np.float64, np.float32])
797799
def test_format_agnosticism(
798800
global_random_seed,
799801
Dispatcher,

0 commit comments

Comments
 (0)
0