Skip to content

Commit b82e78c

Browse files
authored
[R] remove commented-out code (dmlc#9481)
1 parent 8463107 commit b82e78c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

R-package/R/xgb.cv.R

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,6 @@ xgb.cv <- function(params = list(), data, nrounds, nfold, label = NULL, missing
135135
check.custom.obj()
136136
check.custom.eval()
137137

138-
#if (is.null(params[['eval_metric']]) && is.null(feval))
139-
# stop("Either 'eval_metric' or 'feval' must be provided for CV")
140-
141138
# Check the labels
142139
if ((inherits(data, 'xgb.DMatrix') && is.null(getinfo(data, 'label'))) ||
143140
(!inherits(data, 'xgb.DMatrix') && is.null(label))) {
@@ -161,10 +158,6 @@ xgb.cv <- function(params = list(), data, nrounds, nfold, label = NULL, missing
161158
folds <- generate.cv.folds(nfold, nrow(data), stratified, cv_label, params)
162159
}
163160

164-
# Potential TODO: sequential CV
165-
#if (strategy == 'sequential')
166-
# stop('Sequential CV strategy is not yet implemented')
167-
168161
# verbosity & evaluation printing callback:
169162
params <- c(params, list(silent = 1))
170163
print_every_n <- max(as.integer(print_every_n), 1L)

0 commit comments

Comments
 (0)