-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality for early stopping rounds. (#193)
* add functionality for early stopping * remove version word * evaluation msg into a parsing function and add back evaluation to updateone * Updated the call to updateone! to pass in the watchlist so it can be used by early stopping round logic. * Added comments, additional examples, fixed issues with watchlist ordering as a Dict. * Added functionality to extract the best iteration round with examples. Included additional test case coverage. * Cleaned up some lingering test cases. * Updated doc to include early stopping example. * Added additional info on data types for watchlist * Annotated OrderedDict to be more obvious. * Included using statement for OrderedCollection * Moved log message parsing to update! instead of updateone * Updated documentation and tests. * Altered the XGBoost method definition to reflect exception states for early stopping rounds and watchlist. * Created exception if extract_metric_value could not find a match when parsing XGBoost logs. --------- Co-authored-by: Wilan Wong <[email protected]> Co-authored-by: wilan-wong-1 <[email protected]>
- Loading branch information
1 parent
c365c78
commit 4ead83f
Showing
3 changed files
with
305 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.