-
-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'sklearn.utils.testing' #347
Comments
Change the sklearn version to 23.x instead of 24.x. |
|
I came across the same problem that @Rushi21-kesh mentioned. The removed_classifiers = [
"ClassifierChain",
"ComplementNB",
"GradientBoostingClassifier",
"GaussianProcessClassifier",
"HistGradientBoostingClassifier",
"MLPClassifier",
"LogisticRegressionCV",
"MultiOutputClassifier",
"MultinomialNB",
"OneVsOneClassifier",
"OneVsRestClassifier",
"OutputCodeClassifier",
"RadiusNeighborsClassifier",
"VotingClassifier",
]
removed_regressors = [
"TheilSenRegressor",
"ARDRegression",
"CCA",
"IsotonicRegression",
"StackingRegressor",
"MultiOutputRegressor",
"MultiTaskElasticNet",
"MultiTaskElasticNetCV",
"MultiTaskLasso",
"MultiTaskLassoCV",
"PLSCanonical",
"PLSRegression",
"RadiusNeighborsRegressor",
"RegressorChain",
"VotingRegressor",
]
CLASSIFIERS = [est for est in all_estimators() if
(issubclass(est[1], ClassifierMixin) and (est[0] not in removed_classifiers))]
REGRESSORS = [est for est in all_estimators() if
(issubclass(est[1], RegressorMixin) and (est[0] not in removed_regressors))] |
Apologies, I am very new to python. I am getting the same error ModuleNotFoundError: No module named 'sklearn.utils.testing'. Is this issue likely to be fixed in a new version soon? I am unable to install previous versions of lazypredict. Do we know if editing the Supervised.py under the lazypredict site-packages folder fixes this? If so please could someone share the full contents of the file to update? |
I have the same error and I am using sklearn 0.24.x.
|
Those who are facing ModuleNotFoundError: No module named 'sklearn.utils.testing'
|
Description
I'm trying to Import LazyRegressor from lazypredict.Supervised
But while importing I'm getting an error " ModuleNotFoundError: No module named 'sklearn.utils.testing' ". I try it by installing Sklearn version: 0.21.3 / 0.23.1 / 0.24.1 but the same error is raised everytime ( I did all this in new env )
What I Did
The text was updated successfully, but these errors were encountered: