diff options
author | VincentRouvreau <vincent.rouvreau@inria.fr> | 2021-09-06 15:11:09 +0200 |
---|---|---|
committer | VincentRouvreau <vincent.rouvreau@inria.fr> | 2021-09-06 15:11:09 +0200 |
commit | cad4e4bff56dee7fb05be770108775b7623648ad (patch) | |
tree | cb1cecd74681a95ffe03e976623c92db3112adc2 /src/python | |
parent | bf13176f655d0a4d2c6fd851b22ede55b74f2d48 (diff) |
No more parallelization as it is not faster
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/test/test_sklearn_post_processing.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/python/test/test_sklearn_post_processing.py b/src/python/test/test_sklearn_post_processing.py index 60bf8162..e60eadc6 100644 --- a/src/python/test/test_sklearn_post_processing.py +++ b/src/python/test/test_sklearn_post_processing.py @@ -26,18 +26,18 @@ H1_2 = np.array([1.0, 2.0]) def test_dimension_selector(): X = [[H0_0, H1_0], [H0_1, H1_1], [H0_2, H1_2]] - ds = DimensionSelector(persistence_dimension=0, n_jobs=-2) + ds = DimensionSelector(persistence_dimension=0) h0 = ds.fit_transform(X) np.testing.assert_array_equal(h0[0], H0_0) np.testing.assert_array_equal(h0[1], H0_1) np.testing.assert_array_equal(h0[2], H0_2) - ds = DimensionSelector(persistence_dimension=1, n_jobs=-1) + ds = DimensionSelector(persistence_dimension=1) h1 = ds.fit_transform(X) np.testing.assert_array_equal(h1[0], H1_0) np.testing.assert_array_equal(h1[1], H1_1) np.testing.assert_array_equal(h1[2], H1_2) - ds = DimensionSelector(persistence_dimension=2, n_jobs=-2) + ds = DimensionSelector(persistence_dimension=2) with pytest.raises(IndexError): h2 = ds.fit_transform([[H0_0, H1_0], [H0_1, H1_1], [H0_2, H1_2]]) |