How to fix "ImportError: cannot import name '_raise_dep_warning_if_not_pytest' from 'sklearn.utils.deprecation'"?

Viewed 1755

I am trying to use Pycaret to do classification for an imbalanced dataset

I installed Pycaret 2.3.1 and have sklearn 0.23.2

When I use the code

from pycaret.classification import *

I get the error

Error Message Received

Can you help me to fix this? Thanks in advance .

1 Answers

Have you tried

pip install --upgrade scikit-learn
Related