【问题标题】:Will XGBoost early stopping stop after marginal improvements?XGBoost 提前停止会在边际改进后停止吗?
【发布时间】:2021-04-10 20:58:44
【问题描述】:

我知道,如果我们在最后 X 轮中没有任何改进(或性能下降),就会提前停止。即,我们需要在最后 X 轮中至少进行一轮并且几乎没有改进,才能继续。

但我在这里读到: https://www.kaggle.com/vincentf/early-stopping-for-xgboost-python 以下代码内注释:

stops 50 iterations after marginal improvements or drop in performance on your hold out set
  1. 所以,marginal improvements 好像和no improvement 一样,对吗?
  2. 如果是这样,marginal improvements 的值是多少?我们可以设置它的值吗?

【问题讨论】:

    标签: machine-learning xgboost early-stopping


    【解决方案1】:

    您链接到的帖子中“边际改进”的含义非常不清楚(并且可能具有误导性);这里是来自documentation的相关信息:

    early_stopping_rounds (int) – 激活提前停止。验证指标需要在每 early_stopping_rounds 轮中至少改进一次才能继续训练。

    这显然不支持“边际改进”的说法。

    【讨论】:

      猜你喜欢
      • 2020-05-19
      • 2017-08-17
      • 2016-10-20
      • 2017-09-18
      • 2017-10-02
      • 2018-09-13
      • 2016-03-29
      • 1970-01-01
      • 2022-12-18
      相关资源
      最近更新 更多