Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/selfimpro_001/article/details/90452404
When importing KFold, train_test_split of error:ModuleNotFoundError: No module named 'sklearn.cross_validation
Analysis: older versions of sklearn in accordance with the following manner when imported, easy error:
from sklearn.cross_validation import KFold
from sklearn.cross_validation import train_test_split
New imported:
from sklearn.model_selection import KFold
from sklearn.model_selection import train_test_split