https://blog.csdn.net/u012884015/article/details/78653178

xgb_model.get_booster().save_model('xgb.model')
tar = xgb.Booster(model_file='xgb.model')
x_test = xgb.DMatrix(x_test)
pre=tar.predict(x_test)
act=y_test
print(mean_squared_error(act, pre))

  

相关文章:

  • 2021-11-30
  • 2021-05-31
  • 2022-12-23
  • 2021-08-11
  • 2021-10-25
  • 2021-10-04
  • 2022-01-16
  • 2021-12-31
猜你喜欢
  • 2022-01-18
  • 2022-02-25
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-12-22
相关资源
相似解决方案