解决reg:linear is now 和 Series.base is deprecated and will be removed in a future version报错信息
学习赵卫东老师的XGBoost树时,运用老师的代码报了三个错误,经过查询,把代码进行修改,以帮助也学习这门课的朋友们importpandasaspdimportxgboostasxgbdf=pd.DataFrame({'x':[1,2,3],'y':[10,20,30]})X_train=df.drop('y',axis=1)Y_train=df['y']xg_reg=xgb.XGBRegress