cannot import name '_ParamsValidationMixin' from 'imblearn.base'
I've re-installed the latest scikit-learn and imbalanced-learn. I've also checked all other libraries to make sure they are compatible with imbalanced-learn. But I keep getting the error below when I try to import imblearn. Can somebody tell me why it's not working, please?
Code:
import imblearn from imblearn.over_sampling import SMOTE
Error Message:
ImportError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_15900/793248694.py in
~\anaconda3\lib\site-packages\imblearn_init_.py in
~\anaconda3\lib\site-packages\imblearn\combine_init_.py in
~\anaconda3\lib\site-packages\imblearn\combine_smote_enn.py in
~\anaconda3\lib\site-packages\imblearn\over_sampling_init_.py in
~\anaconda3\lib\site-packages\imblearn\over_sampling_smote_init_.py in
~\anaconda3\lib\site-packages\imblearn\over_sampling_smote\base.py in
~\anaconda3\lib\site-packages\imblearn\metrics\pairwise.py in
ImportError: cannot import name '_ParamsValidationMixin' from 'imblearn.base' (C:\Users\23480\anaconda3\lib\site-packages\imblearn\base.py)
Hello Everyone,
I sincerely need your support to unravel the root cause of this error message. It is delaying my assessment work. Or if anyone can suggest any other method one can use to balance imbalance classes.
I will be awaiting your feedback.
Thank you all.
Hi Everyone,
After uninstalling and re-installing Anaconda, my issue got resolved. I'm so happy right now.