shankarpandala / lazypredict

Lazy Predict help build a lot of basic models without much code and helps understand which models works better without any parameter tuning
MIT License
2.87k stars 333 forks source link

Error: No module named 'sklearn.utils.testing' #371

Closed plebiano closed 2 years ago

plebiano commented 2 years ago

I'm getting the following error when using LazyClassifier, running lazypredict version 0.2.8:

Traceback (most recent call last):

  File "C:\Users\Utilizador\AppData\Local\Temp/ipykernel_16512/4090659252.py", line 1, in <module>
    lazy()

  File "C:\Users\Utilizador\Desktop\example.py", line 167, in lazy
    from lazypredict.Supervised import LazyClassifier

  File "C:\Users\Utilizador\anaconda3\lib\site-packages\lazypredict\Supervised.py", line 16, in <module>
    from sklearn.utils.testing import all_estimators

ModuleNotFoundError: No module named 'sklearn.utils.testing'

It seems that sklearn.utils.testing.all_estimators is deprecated, as by the docs. My sklearn is version 1.0.2.

Does this have to do with not having the latest lazypredict version 0.2.9? I tried installing it but am unable to. Will load the error message if you think it would be useful.

Thanks in advance!