from sklearn.utils.validation import check_arrays
执行 from sklearn.utils.validation import check_arrays
ImportError: cannot import name 'check_arrays'
解决办法:修改为 from sklearn.utils.validation import check_array as check_arrays
因为This method was removed in 0.16, replaced by a (very different)
check_array
function.或者:
You are likely getting this error because you didn't upgrade from 0.15 to 0.16 properly. [Or because you relied on a not-really-public function in sklearn]. See http://scikit-learn.org/dev/install.html#canopy-and-anaconda-for-all-supported-platforms . If you installed using anaconda / conda, you should use the conda mechanism to upgrade, not pip. Otherwise old .pyc files might remain in your folder.