Skip to content

Commit

Permalink
Update R-package/R/xgboost.R
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Mayer <[email protected]>
  • Loading branch information
david-cortes and mayer79 authored Jun 29, 2024
1 parent adf03b3 commit a8bd926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R-package/R/xgboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ process.y.margin.and.objective <- function(
)

} else if (is.data.frame(y)) {
if (ncol(y) == 1) {
if (ncol(y) == 1L) {
return(process.y.margin.and.objective(y[[1L]], base_margin, objective, params))
}

Expand Down

0 comments on commit a8bd926

Please sign in to comment.