markdown
## No module named 'sklearn.cross_validation'
參考: [https://blog.csdn.net/qq_35962520/article/details/85295228](https://blog.csdn.net/qq_35962520/article/details/85295228)
在機器學習時會遇到這個報錯,原因是
所以只要將原先的
```
from sklearn.cross_validation import train_test_split
```
更改成
```
from sklearn.model_selection import train_test_split
```
cross_validation | 這個包裹,已經移到 | model_selection |
留言
張貼留言