C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\sklearn\base.py:318: UserWarning: Trying to unpickle estimator DecisionTreeRegressor from version 1.0.2 when using version 1.2.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
warnings.warn(
C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\sklearn\base.py:318: UserWarning: Trying to unpickle estimator LabelEncoder from version 1.0.2 when using version 1.2.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
@Shivam_Dubey From your other post, it looks like you tried to “upgrade” scikit-learn. In your case, you need to downgrade it. You are on version 1.2.2 and need to go to version 1.0.2 (be careful not to switch the digits; you need 1.0.2 and not 1.2.0)
You may need to downgrade other packages or use an older version of Python as well. It looks like you are working in your base environment. I recommend setting up a separate, clean environment to work in so you can handle changing versions around in a simpler manner.