tslearn
tslearn copied to clipboard
sklearn.utils.testing module deprecated in scikit-learn 0.24
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.
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!
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.
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.