-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Appears that the checking of deprecated attributes in turn causing issues #25881
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
Hi @tqiu592, can you provide a minimal reproducible example ? |
I think #25668 might be related/relevant context. |
Whoops - my bad. I rushed to revert the scikit-learn version back to 1.1.x, and the codes no longer complaining. So I might not be able to generate the same error message as in the screenshot above. But essentially this is an compatibility issue I guess, which arose when the RandomForestRegressor class calling the new base file in 1.2.2 version is attempting to wrap up the old attributes "self.estimator_" vs new attribute "self.estimator", the checking code on line 156 actually using the self.estimator, which doesn't exist in the old version of RFRegressor (it only has self.estimator_ ). hence the error message above. |
Yes, that looks super relevant, but maybe the fixes didn't go in the v1.2.2 release? (Or perhaps, it hasn't fully address the issue yet?) |
Closing for lack of a reproducible. Happy to re-open if a reproducible is provided. |
##########
environment info
Microsoft Windows [Version 10.0.19045.2604]
(c) Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>pip show scikit-learn
Name: scikit-learn
Version: 1.2.2
Summary: A set of python modules for machine learning and data mining
Home-page: http://scikit-learn.org
Author:
Author-email:
License: new BSD
Location: c:\program files\python3\lib\site-packages
Requires: joblib, numpy, scipy, threadpoolctl
Required-by: ffn, lazypredict, lightgbm, shap
C:\WINDOWS\system32>python --version
Python 3.10.8
C:\WINDOWS\system32>
The text was updated successfully, but these errors were encountered: