ImportError: cannot import name 'cross_validate'

I am trying to do:

from sklearn.model_selection import cross_validate

as mentioned here . But get the error:

ImportError: cannot import name 'cross_validate'

Everything else at Sklearn seems to work fine, it's just that bit. The error even occurs when I run this line and nothing else.

+4
source share
1 answer

cross-validateis new in version 0.19.0 ( change log ):

. model_selection.cross_validate , , / .

, scikit-learn conda upgrade scikit-learn, conda pip install --upgrade scikit-learn. , cross_val_score.

+8

Source: https://habr.com/ru/post/1683613/


All Articles