-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
AssertionError when enabling autolog for sklearn with mlflow #26992
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
Comments
Never saw this one. I assume that the |
I"m not sure if this is a problem in scikit-learn or a problem that comes about when mlfow uses scikit-learn. The assertion is raised because distutils was already imported when scikit-learn attempts to import setuptools. When you directly run the scikit-learn code: from sklearn.utils import all_estimators
estimators = all_estimators() (I think this is the relevant bit that mlflow calls) then no warning is raised. As far as I can tell distutils isn't (directly) imported or referenced in the scikit-learn code base. So my guess is that mlflow (or some other library) imports it, before the scikit-learn Unfortunately I have no good idea for instructions on how to track down who/what imports distutils :-/ |
From mlflow/mlflow#9173 (comment), the original issue was resolved when I also find it strange that |
This seems solved. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I came here from this issue: mlflow/mlflow#9173
And by looking at the
Actual Results
part, it seems like the source of the error is scikit-learnSteps/Code to Reproduce
Expected Results
No error is thrown
Actual Results
Versions
The text was updated successfully, but these errors were encountered: