You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test test_pairwise_distances_data_derived_params from metrics.pairwise is really really slow (25s instead of a few 100ms).
========================== slowest 20 test durations ===========================
25.10s call metrics/tests/test_pairwise.py::test_pairwise_distances_data_derived_params[Y is not X-pairwise_distances_chunked-seuclidean-2]
25.00s call metrics/tests/test_pairwise.py::test_pairwise_distances_data_derived_params[Y is not X-pairwise_distances_chunked-mahalanobis-2]
24.57s call metrics/tests/test_pairwise.py::test_pairwise_distances_data_derived_params[Y is X-pairwise_distances_chunked-mahalanobis-2]
24.41s call metrics/tests/test_pairwise.py::test_pairwise_distances_data_derived_params[Y is X-pairwise_distances_chunked-seuclidean-2]
The tricky thing is that:
it's only on the distrib=ubuntu job.
it affects pairwise_distances_chunked but not pairwise_distances
I tested it locally with ubuntu:16.04 docker image (apparently the same one as used by travisCI), python, scipy and atlas from public ubuntu apt repository. The test run times are looking ok:
0.39s call sklearn/metrics/tests/test_pairwise.py::test_pairwise_distances_data_derived_params[Y is not X-pairwise_distances_chunked-mahalanobis-2]
0.37s call sklearn/metrics/tests/test_pairwise.py::test_pairwise_distances_data_derived_params[Y is X-pairwise_distances_chunked-mahalanobis-2]
0.33s call sklearn/metrics/tests/test_pairwise.py::test_pairwise_distances_data_derived_params[Y is X-pairwise_distances-seuclidean-2]
0.29s call sklearn/metrics/tests/test_pairwise.py::test_pairwise_distances_data_derived_params[Y is not X-pairwise_distances_chunked-seuclidean-2]
0.28s call sklearn/metrics/tests/test_pairwise.py::test_pairwise_distances_data_derived_params[Y is X-pairwise_distances_chunked-seuclidean-2]
Activity
btel commentedon Feb 26, 2019
I tested it locally with ubuntu:16.04 docker image (apparently the same one as used by travisCI), python, scipy and atlas from public ubuntu apt repository. The test run times are looking ok:
The docker's lib versions:
btel commentedon Mar 1, 2019
Since travisCI was removed from the github checks by PR #13341, should we close this issue?
jeremiedbb commentedon Mar 1, 2019
Can you look at the tests on azure jobs to check if it's not reproduced there ?
But anyway, even if we dropped travis, the issue still exists, so I don't think we should close it for now.
adrinjalali commentedon Mar 1, 2019
@thomasjpfan do we have the statistics about test times on Azure?
btel commentedon Mar 1, 2019
here is what azure says:
https://dev.azure.com/scikit-learn/scikit-learn/_build/results?buildId=656&view=logs&jobId=525627ef-fb84-5ca5-3e29-d0f0cecb144c
The tests are also slow on azure. What platform is used to test on Azure?
jeremiedbb commentedon Mar 1, 2019
@adrinjalali Apparently we do :)
So the issue is still here and happens on the same distrib