Skip to content

Commit 4dc7769

Browse files
committed
New vers of xgboost uses x, y, and does not use verbose; the warnings raised throw errors in the tests if not corrected for
1 parent dddb5d1 commit 4dc7769

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

R/learners.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ lnr_xgboost <-
365365
formula,
366366
weights = NULL,
367367
nrounds = 1000,
368-
verbose = 0,
369368
...) {
370369

371370
xdata <- stats::model.matrix.lm(formula, data, na.action = 'na.pass')
@@ -374,10 +373,9 @@ lnr_xgboost <-
374373

375374
model <-
376375
xgboost::xgboost(
377-
data = xdata,
378-
label = y,
376+
x = xdata,
377+
y = y,
379378
nrounds = nrounds,
380-
verbose = verbose,
381379
weight = weights,
382380
...
383381
)

0 commit comments

Comments
 (0)