Skip to content

Commit 2cb63fc

Browse files
author
Chen Ying
committed
resolve the warning caused by using old argument name data and label, and also using verbose argument
1 parent 4474201 commit 2cb63fc

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

R/bambu-processReads_utilityJunctionErrorCorrection.R

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ fitXGBoostModel <- function(labels.train, data.train, nrounds = 50,
214214
cv.fit <- xgboost(x = data.train.cv,
215215
y = labels.train.cv, nthread = 1, nrounds = nrounds,
216216
objective = "binary:logistic",
217-
eval_metric = 'error',
218-
verbose = 0)
217+
eval_metric = 'error')
219218
predictions <- predict(cv.fit, data.train.cv.test)
220219
message('prediction accuracy (CV) (higher for splice ',
221220
'donor than splice acceptor)')
@@ -229,11 +228,10 @@ fitXGBoostModel <- function(labels.train, data.train, nrounds = 50,
229228
message("AUC: ", evaluatePerformance(labels.train.cv.test == 1,predictions)$AUC)
230229
}
231230

232-
cv.fit <- xgboost(data = data.train,
233-
label = labels.train, nthread=1, nrounds=nrounds,
231+
cv.fit <- xgboost(x = data.train,
232+
y = labels.train, nthread=1, nrounds=nrounds,
234233
objective = "binary:logistic",
235-
eval_metric='error',
236-
verbose = 0)
234+
eval_metric='error')
237235

238236
return(cv.fit)
239237
}

0 commit comments

Comments
 (0)