AttributeError: ‘dict_items’ object has no attribute ‘copy’ # 迭代次数,对于分类问题,每个类别的迭代次数,所以总的基学习器的个数 = 迭代次数*类别个数 num_rounds = 50 model = xgb.train(plst, dtrain, num_rounds) # xgboost模型训练 xgboost中的plst参数定义更改 原 plst = params.items() 更新为 plst = list(params.items())