when I try to import deprecate_positional_args fuction from sklearn.utils.validation' I got this import error:
ImportError: cannot import name '_deprecate_positional_args' from 'sklearn.utils.validation'
The scikit-learn version is 0.21.3
I was facing the same error when running in a Jupyter environment. Was resolved by installing imbalanced-learn
by running !pip install -U imbalanced-learn
and then restarting the runtime. Restarting the runtime is the key here. If you don't restart, the error won't go.
I solved this problem by upgrading scikit-learn:
pip install --upgrade scikit-learn
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With