ImportError: cannot import name check_array from sklearn.utils.validation

后端 未结 2 1419
悲&欢浪女
悲&欢浪女 2021-01-17 11:01

When I import the function check_array from module sklearn.utils.validation, it got an Import Error (ImportError: cannot import name check_ar

相关标签:
2条回答
  • 2021-01-17 11:12

    If you use jupyter notebook, try restarting your kernel.

    0 讨论(0)
  • 2021-01-17 11:25

    To those searching, as @eickenberg mentioned in the comments, this was something that was changed between versions. Using the latest version of scikit-learn resolved the issue.

    0 讨论(0)
提交回复
热议问题