Merge pull request #720 from derek-damron/master

Add newline chars to early.stop.round message
This commit is contained in:
Yuan (Terry) Tang 2016-01-04 23:51:40 -06:00
commit b684b5fada
2 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ xgb.cv <- function(params=list(), data, nrounds, nfold, label = NULL, missing =
} else {
if (i - bestInd >= early.stop.round) {
earlyStopflag <- TRUE
cat('Stopping. Best iteration:',bestInd)
cat('Stopping. Best iteration:', bestInd, '\n')
break
}
}

View File

@ -212,7 +212,7 @@ xgb.train <- function(params=list(), data, nrounds, watchlist = list(),
} else {
earlyStopflag = TRUE
if (i - bestInd >= early.stop.round) {
cat('Stopping. Best iteration:',bestInd)
cat('Stopping. Best iteration:', bestInd, '\n')
break
}
}