Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ModuleNotFoundError: No Module named 'sklearn.utils._testing'

from sklearn.utils._testing import ignore_warnings

ModuleNotFoundError: No Module named 'sklearn.utils._testing'

How Could I solve this problem? My sklearn version is 0.21.3

like image 472
Taijin Kim Avatar asked Nov 15 '22 10:11

Taijin Kim


1 Answers

In version 0.21.3: sklearn.utils.testing

from sklearn.utils.testing import ignore_warnings

In version 0.24.1 or later (link): sklearn.utils._testing (with underscore)

from sklearn.utils._testing import ignore_warnings
like image 122
Prateek Sharma Avatar answered Dec 31 '22 21:12

Prateek Sharma