This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use global logger. Make it specific to each estimator.
gluon.contrib.estimator used a global Logger obtained via `logging.getLogger('gluon.contrib.estimator.event_handlers')`. This logger used to be configured every time a gluon.contrib.estimator.LoggingHandler was created, which is a bug. We can't modify a global Logger instance whenever the user creates an Estimator and a LoggingHandler. Instead, this commit separates the LoggingHandler (responsible for logging metadata during estimator.fit) from the configuration of the Logger. We expose the Logger as attribute of the Estimator, and configure it to output to stdout by default. Instructions are given how users can configure the Estimator.logger to log to a file instead.
- Loading branch information
Showing
3 changed files
with
79 additions
and
85 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
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