from skleran.cross_validation import KFold以及from sklearn.model_selection import KFold
fromskleran.cross_validationimportKFoldkf=KFold(n,n_folds=3,shuffle=False,random_state=1)这个接口已经过期了,取而代之的是:fromsklearn.model_selectionimportKFoldkf=KFold(n,n_splits=3,shuffle=False,random_state=1)参数含义: