Skip to content

Commit

Permalink
[R] don't throw warning when nothing changes (#11073)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes authored Dec 8, 2024
1 parent eb3a188 commit 8173e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R-package/R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ generate.cv.folds <- function(nfold, nrows, stratified, label, group, params) {
return(generate.group.folds(nfold, group))
}
objective <- params$objective
if (!is.character(objective)) {
if (stratified && !is.character(objective)) {
warning("Will use unstratified splitting (custom objective used)")
stratified <- FALSE
}
Expand Down

0 comments on commit 8173e57

Please sign in to comment.