from sklearn.model_selection import Stratified KFold # 导入K折验证工具 def Stacking(model, train, y, test, n_fold): # 定义Stacking函数