Skip to content

Commit

Permalink
Merge pull request #720 from derek-damron/master
Browse files Browse the repository at this point in the history
Add newline chars to early.stop.round message
  • Loading branch information
terrytangyuan committed Jan 5, 2016
2 parents fa205cd + 8756d5b commit b684b5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R-package/R/xgb.cv.R
Expand Up @@ -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
}
}
Expand Down
2 changes: 1 addition & 1 deletion R-package/R/xgb.train.R
Expand Up @@ -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
}
}
Expand Down

0 comments on commit b684b5f

Please sign in to comment.