Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was 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

@srijoyray

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)) {

Activity

  1. self-assigned this
    on Apr 16, 2017
  2. thirdwing commented on May 25, 2017

    @thirdwing
    Contributor

    Fixed in #4587.

  3. added a commit that references this issue on May 30, 2017
    8d2b046
  4. added a commit that references this issue on Jun 5, 2017
    788c280
  5. added 2 commits that reference this issue on Sep 13, 2017
    4cb57d6
    c54afc3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions