Skip to content

Commit

Permalink
quick fix #1147
Browse files Browse the repository at this point in the history
  • Loading branch information
guolinke committed Dec 27, 2017
1 parent a5f43c9 commit 4ecd08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R-package/R/callback.R
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ cb.early.stop <- function(stopping_rounds, verbose = TRUE) {
}

}
if (isFALSE(env$met_early_stop) && cur_iter == env$end_iteration) {
if (!isTRUE(env$met_early_stop) && cur_iter == env$end_iteration) {
# Check if model is not null
if (!is.null(env$model)) {
env$model$best_score <- best_score[i]
Expand Down

0 comments on commit 4ecd08c

Please sign in to comment.