ray.train.lightgbm.RayTrainReportCallback.获取模型#

classmethod RayTrainReportCallback.get_model(checkpoint: Checkpoint, filename: str = 'model.txt') lightgbm.basic.Booster[源代码]#

检索此回调报告的检查点中存储的模型。

参数:
  • checkpoint – 训练运行返回的检查点对象。检查点应由该回调的实例保存。

  • filename – The filename to load the model from, which should match the filename used when creating the callback.