train_pred1 = pd.Data Frame(train_pred1) test_pred1 = pd.Data Frame(test_pred1) from sklearn.neighbors import KNeighbors Classifier # 导入KNN模型 model2 = KNeighbors Classifier() # model2-KNN test_pred2 , train_pred2 = Stacking(model=model2, n_fold=10,