Skip to content

Commit 64e63e3

Browse files
author
Chen Ying
committed
update label to logical for testing fixXGboostmodels
1 parent 4171f8a commit 64e63e3

4 files changed

Lines changed: 16268 additions & 16157 deletions

File tree

data-raw/DATASET.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# fitXGBoostModel() in test_xgboost.R
55
data_train <- matrix(seq(1:300000), nrow=100000)
66
data_test <- matrix(c(seq(1:28000), seq(280001:300000)), nrow=16000)
7-
labels_train <- c(rep(1,50000), rep(0,50000))
7+
labels_train <- as.logical(c(rep(1,50000), rep(0,50000)))
88
xgb_model <- fitXGBoostModel(labels_train, data_train, show.cv=TRUE)
99
# Extract the predictions and results from the list
1010
xgb_predictions = predict(xgb_model, data_test)

0 commit comments

Comments
 (0)