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 057bd23 commit a4df40f
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 @@ -69,7 +69,7 @@ process.base.margin <- function(base_margin, nrows, ncols) {

if (ncols == 1L) {
if (inherits(base_margin, c("matrix", "data.frame"))) {
if (ncol(base_margin) != 1) {
if (ncol(base_margin) != 1L) {
stop("'base_margin' should be a 1-d vector for the given objective and data.")
}
if (is.data.frame(base_margin)) {
Expand Down

0 comments on commit a4df40f

Please sign in to comment.