Skip to content

Commit

Permalink
[R-package] Fix best_iter and best_score (#2159)
Browse files Browse the repository at this point in the history
* Callback for NA handling

* lgb.Booster default score => NA

* lgb.cv default best score => NA

* Fix back callback

* lgb.train with booster check at the end

manual tests done: 
* With early stopping + with validation set
* With early stopping + without validation set
* Without early stopping + with validation set
* Without early stopping + without validation set

And with multiple metrics / validation sets.

* lgb.cv with booster check at the end

manual tests done: 
* With early stopping + with validation set
* With early stopping + without validation set
* Without early stopping + with validation set
* Without early stopping + without validation set

And with multiple metrics / validation sets.
  • Loading branch information
Laurae2 authored and jameslamb committed May 27, 2019
1 parent 2459362 commit f70a053
Show file tree
Hide file tree
Showing 4 changed files with 303 additions and 279 deletions.

0 comments on commit f70a053

Please sign in to comment.