Corrected lapply comment in callbacks.R (#6967)

The comment was made false by the removal of the pipes.
This commit is contained in:
ReeceGoding 2021-05-16 19:31:50 +01:00 committed by GitHub
parent a4886c404a
commit 42fc7ca6a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -641,7 +641,7 @@ cb.gblinear.history <- function(sparse=FALSE) {
if (!is.null(env$bst)) { # # xgb.train:
coefs <<- list2mat(coefs)
} else { # xgb.cv:
# first lapply transposes the list
# second lapply transposes the list
coefs <<- lapply(
X = lapply(
X = seq_along(coefs[[1]]),