ImportError: cannot import name 'logsumexp' when importing sklearn.model_selection
I came across exactly the same problem just now. After I updated scikit-learn
and tried to import sklearn.model_selection
, the ImportError appeared.
I just restarted anaconda and ran it again.
It worked. Don't know why.
It's not the best solution, but rolling back to 0.18.2 worked for me (after trying all above-mentioned solutions):
pip uninstall scikit-learn
pip install scikit-learn==0.18.2
Ultimately, it worked with version 0.18.2 of scikit-learn and version 1.2.0 of scipy.