From c18e081f486792ce6eeacb9e8110755ea685c0ef Mon Sep 17 00:00:00 2001 From: Vadim Khotilovich Date: Fri, 1 May 2015 16:16:50 -0500 Subject: [PATCH] cleanup --- R-package/R/utils.R | 1 - 1 file changed, 1 deletion(-) diff --git a/R-package/R/utils.R b/R-package/R/utils.R index 7a3731546..4a5d99c7d 100644 --- a/R-package/R/utils.R +++ b/R-package/R/utils.R @@ -234,7 +234,6 @@ xgb.cv.mknfold <- function(dall, nfold, param, stratified, folds) { # For classification, need to convert y labels to factor before making the folds, # and then do stratification by factor levels. # For regression, leave y numeric and do stratification by quantiles. - n_uniq <- length(unique(y)) if (exists('objective', where=param)) { # If 'objective' provided in params, assume that y is a classification label # unless objective is reg:linear