Lazypredict package should check for dependencies at installation
See original GitHub issueHi,
I wanted to give your package a try, but can’t. A bit of description of my setup:
- Operating System: Google Colab Notebook (Linux)
- Python 3.6.9
- lazypredict==0.2.7
- scikit-learn==0.24.0
I’m getting an error just by importing your package.
from lazypredict.Supervised import LazyRegressor
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-85-a096f5bd7a1d> in <module>()
----> 1 from lazypredict.Supervised import LazyRegressor
/usr/local/lib/python3.6/dist-packages/lazypredict/Supervised.py in <module>()
14 from sklearn.preprocessing import StandardScaler, OneHotEncoder
15 from sklearn.compose import ColumnTransformer
---> 16 from sklearn.utils.testing import all_estimators
17 from sklearn.base import RegressorMixin
18 from sklearn.base import ClassifierMixin
ModuleNotFoundError: No module named 'sklearn.utils.testing'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
It seems to be a discrepancy between the version of SciKit-Learn I have and the one that LazyPredict expects, since the architecture of sklearn is different.
Shouldn’t you try to make sure that the expected versions of dependency packages are installed ?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:16
Top Results From Across the Web
Installation — Lazy Predict 0.2.12 documentation
To install Lazy Predict, run this command in your terminal: $ pip install lazypredict. This is the preferred method to install Lazy Predict,...
Read more >lazypredict - PyPI
Lazy Predict help build a lot of basic models without much code and helps understand which models works better without any ... To...
Read more >LazyPredict - Deepnote
No files were found to uninstall. ERROR: pip's dependency resolver does not currently take into account all the packages that are installed.
Read more >lazypredict - Python Package Health Analysis - Snyk
A security vulnerability was detected in an indirect dependency that is added to your project when the latest version of lazypredict is installed....
Read more >Need help installing a package | Data Science and ... - Kaggle
I'm trying to install a package called LazyPredict. But during the installation, I think it downgrades different other packages like for example- Pandas....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Go to Supervised.py and change this line
from sklearn.utils.testing import all_estimators
to
from sklearn.utils import all_estimators
I did this in my environment and it works fine now.
Hi guys, thanks for opening this issue. Indeed, the current version of lazypredict requires that you use the
scikit-learn==0.23.1
, because a couple things have changed after the sckit-learn upgrade to version 0.24.We need to update the lazypredict support of scikit-lean.
I’m planning to do this on the next weeks, but if any of you wanted to give a try, please, let me know and go ahead.