Skip to content

Commit 4474201

Browse files
author
Chen Ying
committed
fix xgboost data and label rename to x and y warning
1 parent e07fbad commit 4474201

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/bambu-processReads_utilityJunctionErrorCorrection.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ fitXGBoostModel <- function(labels.train, data.train, nrounds = 50,
211211
data.train.cv.test <- data.train[-mySample,]
212212
labels.train.cv.test <- labels.train[-mySample]
213213

214-
cv.fit <- xgboost(data = data.train.cv,
215-
label = labels.train.cv, nthread = 1, nrounds = nrounds,
214+
cv.fit <- xgboost(x = data.train.cv,
215+
y = labels.train.cv, nthread = 1, nrounds = nrounds,
216216
objective = "binary:logistic",
217217
eval_metric = 'error',
218218
verbose = 0)

0 commit comments

Comments
 (0)