code_3.py 257 字节
Newer Older
ToTensor's avatar
ToTensor 已提交
1 2 3 4 5
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,