code_1.py 146 字节
Newer Older
ToTensor's avatar
ToTensor 已提交
1 2
from sklearn.model_selection import Stratified KFold # 导入K折验证工具
def Stacking(model, train, y, test, n_fold): # 定义Stacking函数