Skip to content

Commit

Permalink
fix: verbose=0 doesn't suppress evaluation info
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnu0x1 committed Jun 12, 2016
1 parent 7cfeb5f commit 0fbf16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R-package/R/xgb.train.R
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ xgb.train <- function(params=list(), data, nrounds, watchlist = list(),
succ <- xgb.iter.update(bst$handle, dtrain, i - 1, obj)
if (length(watchlist) != 0) {
msg <- xgb.iter.eval(bst$handle, watchlist, i - 1, feval)
if (0 == ( (i - 1) %% print.every.n))
if ((verbose > 0) && (0 == ((i - 1) %% print.every.n)))
cat(paste(msg, "\n", sep = ""))
if (!is.null(early.stop.round))
{
Expand Down

0 comments on commit 0fbf16b

Please sign in to comment.