参考链接: https://blog.csdn.net/Jae_Peng/article/details/79277920
解决办法:
原来在 cross_validation 里面的函数都放在 model_selection 里面了;
from sklearn.model_selection import GridSearchCV from sklearn.model_selection import train_test_split