Merge pull request #720 from derek-damron/master
Add newline chars to early.stop.round message
This commit is contained in:
commit
b684b5fada
@ -200,7 +200,7 @@ xgb.cv <- function(params=list(), data, nrounds, nfold, label = NULL, missing =
|
|||||||
} else {
|
} else {
|
||||||
if (i - bestInd >= early.stop.round) {
|
if (i - bestInd >= early.stop.round) {
|
||||||
earlyStopflag <- TRUE
|
earlyStopflag <- TRUE
|
||||||
cat('Stopping. Best iteration:',bestInd)
|
cat('Stopping. Best iteration:', bestInd, '\n')
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -212,7 +212,7 @@ xgb.train <- function(params=list(), data, nrounds, watchlist = list(),
|
|||||||
} else {
|
} else {
|
||||||
earlyStopflag = TRUE
|
earlyStopflag = TRUE
|
||||||
if (i - bestInd >= early.stop.round) {
|
if (i - bestInd >= early.stop.round) {
|
||||||
cat('Stopping. Best iteration:',bestInd)
|
cat('Stopping. Best iteration:', bestInd, '\n')
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user