From 611d69c771f5fad6eedec598839fc5175f83957e Mon Sep 17 00:00:00 2001 From: Vadim Khotilovich Date: Thu, 2 Apr 2015 19:59:06 -0500 Subject: [PATCH] fix some wording --- R-package/R/utils.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/R-package/R/utils.R b/R-package/R/utils.R index b0b565a3d..ca32901dc 100644 --- a/R-package/R/utils.R +++ b/R-package/R/utils.R @@ -222,10 +222,10 @@ xgb.cv.mknfold <- function(dall, nfold, param, stratified) { y <- getinfo(dall, 'label') if (stratified & length(y) == length(randidx)) { y <- y[randidx] - # by default assume that y is a classification label, and only - # leave it numeric for the reg:linear objective - # WARNING: if there would be any objectives with truly numerical - # they would not currently be treated correctly. + # By default assume that y is a classification label, + # and only leave it numeric for the reg:linear objective. + # WARNING: if there would be any other objectives with truly + # numerical labels, they currently would not be treated correctly! if (param[['objective']] != 'reg:linear') y <- factor(y) idset <- xgb.createFolds(y, nfold) } else {