tslearn icon indicating copy to clipboard operation
tslearn copied to clipboard

sklearn.utils.testing module deprecated in scikit-learn 0.24

Open chusloj opened this issue 4 years ago • 3 comments

Describe the bug Testing in the Azure Pipeline fails because sklearn.utils.testing is deprecated in scikit-learn since version 0.24.

Environment:

  • OS: OSX Big Sur 11.1
  • tslearn version 0.4.1

Additional Context This was discovered while submitting #328.

chusloj avatar Dec 30 '20 19:12 chusloj

Thanks for pointing this @chusloj !

I guess it's mainly a matter of import. If anyone has time to work on this, it would be great!

rtavenar avatar Dec 31 '20 10:12 rtavenar

In fact, there has been quite some change in the testing utilities in sklearn 0.24. A major refactoring of test_all_estimators and subsequent checks would be welcome.

rtavenar avatar Jan 07 '21 09:01 rtavenar

The warning was fixed by @GillesVandewiele in 274ad185b08f5d601bc6e9a75d95c3fc6ceb61d6. It also seems like from sklearn.utils._testing import SkipTest could be replaced by from unittest import SkipTest as it only is an alias anyways.

felixdivo avatar Feb 27 '21 15:02 felixdivo