Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'stable_cumsum' #24

Open
alexandermed opened this issue Oct 27, 2016 · 3 comments
Open

ImportError: cannot import name 'stable_cumsum' #24

alexandermed opened this issue Oct 27, 2016 · 3 comments

Comments

@alexandermed
Copy link

Добрый день! Помогите, пожалуйста, разобраться с ошибкой.
Перед разделением выборки на обучающую и тестовую строка

from sklearn.model_selection import train_test_split

выдает такую ошибку:
from ..utils.extmath import stable_cumsum
ImportError: cannot import name 'stable_cumsum'

image

sklearn у меня установлен. Что я сделал не так?

Заранее спасибо!

@grishasobol
Copy link

Попробуй вместо from sklearn.model_selection import train_test_split from sklearn.cross_validation import train_test_split, Это может зависеть от версии sklearn.

@alexandermed
Copy link
Author

То же самое:
image

@mikhaylova-daria
Copy link

может спасти обновление sklearn https://anaconda.org/anaconda/scikit-learn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants