Skip to content

Commit

Permalink
added new early_stopping alias
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Sep 27, 2019
1 parent 9e79d1a commit 35680df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R-package/R/lgb.train.R
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ lgb.train <- function(params = list(),
}

using_early_stopping <- !is.null(early_stopping_rounds)
if (using_early_stopping && identical(params$boosting, "dart")){
warning("Early stopping is not available in 'dart' mode")
if (identical(params$boosting, "dart")){
warning("Early stopping is not available in 'dart' mode.")
use_early_stopping <- FALSE
}

Expand Down

0 comments on commit 35680df

Please sign in to comment.