This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
R-package. Bug in early stop callback function for maximize = TRUE #4587
Closed
Description
There is a bug in the early stop callback function #3938 when eval.metric needs to be maximized. The mx.callback.early.stop as soon as the evaluation increases even when the "maximize" is set to TRUE.
The line 138 of R-package/R/callback.R must be changed from
if (result$value > mx.best.score | (maximize == TRUE & result$value < mx.best.score)) {
to
if ((maximize == FALSE & result$value > mx.best.score) | (maximize == TRUE & result$value < mx.best.score)) {
Metadata
Assignees
Labels
No labels