Scikit-learn: ImportError: cannot import name atleast2d_or_csr

Created on 24 Mar 2016  路  2Comments  路  Source: scikit-learn/scikit-learn

Installing collected packages: scikit-learn
Successfully installed scikit-learn-0.17.1
zhanghuengdeMBP:Final-Project zhanghuaizheng$ python python-ELM/elm_notebook.py
Traceback (most recent call last):
  File "python-ELM/elm_notebook.py", line 17, in <module>
    from elm import ELMClassifier, ELMRegressor, GenELMClassifier, GenELMRegressor
  File "/Users/zhanghuaizheng/Project/python_project/Final-Project/Python-ELM/elm.py", line 34, in <module>
    from random_layer import RandomLayer, MLPRandomLayer
  File "/Users/zhanghuaizheng/Project/python_project/Final-Project/Python-ELM/random_layer.py", line 27, in <module>
    from sklearn.utils import check_random_state, atleast2d_or_csr
ImportError: cannot import name atleast2d_or_csr

ImportError: cannot import name atleast2d_or_csr
Why this happened?

Most helpful comment

Seems to be removed from the code. Try check_array instead as suggested here.

All 2 comments

Seems to be removed from the code. Try check_array instead as suggested here.

Thank you.It works @ssaeger

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jhennrich picture jhennrich  路  61Comments

cgsavard picture cgsavard  路  118Comments

jorisvandenbossche picture jorisvandenbossche  路  63Comments

amueller picture amueller  路  79Comments

MechCoder picture MechCoder  路  165Comments