Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Backport #16810 #16846

Merged
merged 1 commit into from
Nov 19, 2019
Merged

Backport #16810 #16846

merged 1 commit into from
Nov 19, 2019

Conversation

leezu
Copy link
Contributor

@leezu leezu commented Nov 18, 2019

Add #16810 to v1.6 release.

@ptrendx

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.
@leezu leezu requested a review from szha as a code owner November 18, 2019 02:58
@leezu leezu requested a review from ptrendx November 18, 2019 02:58
@leezu
Copy link
Contributor Author

leezu commented Nov 19, 2019

@ptrendx CI passes. Please merge when you're ready.

@ptrendx ptrendx merged commit 6834d15 into apache:v1.6.x Nov 19, 2019
@leezu leezu deleted the estimator16x branch November 20, 2019 01:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants