Skip to content

Commit

Permalink
bug custom xfold xgb
Browse files Browse the repository at this point in the history
  • Loading branch information
gtesei committed Mar 23, 2016
1 parent a03b9c1 commit 7b24cdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R-package/R/fastRegression.R
Original file line number Diff line number Diff line change
Expand Up @@ -1393,8 +1393,8 @@ ff.xgb.cv <- function(params=list(), data, nrounds, nfold, label = NULL, xgb.met
if (length(early.stop)>1) early.stop = early.stop[length(early.stop)]

## stop?
if ( early.stop < (iter.num*nrounds+nrounds) || (!maximize && !is.null(perf.last) && min(dt[[lab]]) > perf.last)
|| (maximize && !is.null(perf.last) && max(dt[[lab]]) < perf.last) ) {
if ( early.stop < (iter.num*nrounds+nrounds) || (!maximize && !is.null(perf.last) && min(dt[[lab]]) >= perf.last)
|| (maximize && !is.null(perf.last) && max(dt[[lab]]) <= perf.last) ) {

inCV = FALSE

Expand Down
Binary file modified fastfurious-manual.pdf
Binary file not shown.

0 comments on commit 7b24cdf

Please sign in to comment.