xgboost自定义早期停止功能

发布于 2025-02-09 01:56:41 字数 616 浏览 3 评论 0 原文

XGBoost似乎没有支持自定义早期停止功能。正确的?

此页面 https://xgboost.readthedocs.io readthedocs.io/en/en/latest/python/ callbacks.html 表示XGBoost允许指定自定义的度量标准和rofors_stopping_rounds。

我需要的是自定义早期停止功能,您可以在其中指定度量标准的阈值,例如,当指标高于阈值以上或根据阈值降低时。 tensorflow keras支持这样的回电 httpps:///www.tensorflow.org/guide.orge/guide/keras/custom_custom_custom_caslback < /a>。

谢谢。

It does not seem that xgboost support custom early stopping function. Right?

This page https://xgboost.readthedocs.io/en/latest/python/callbacks.html says xgboost allows a custom metric and early_stopping_rounds to be specified.

What I need is custom early stopping function where you can specify the threshold for the metric, e.g., when the metric is above/below a threshold or stopped decreasing according to the threshold. Tensorflow Keras support such call back https://www.tensorflow.org/guide/keras/custom_callback.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文