Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[timeseries] enable logging to file, clean up set_logger_verbosity calls #3877

Merged
merged 3 commits into from
Jan 23, 2024

Conversation

canerturkmen
Copy link
Contributor

Issue #, if available:

#3766

Description of changes:

  • Enable logging to file, including a custom log file name following the API of TabularPredictor.
  • Clean up unused verbosity arguments and set_logger_verbosity calls throughout the library.

Note: Previously, timeseries model objects (AbstractTimeSeriesModel) had their own verbosity levels provided in the call to fit, which was propagated from the Trainer fit call to individual models. While this created clutter, it also afforded the flexibility of models potentially using the verbosity level to set dependency log output levels (e.g., GluonTS). We keep this as is: GluonTS models still receive verbosity as a fit argument.

However, logger verbosity is now only controlled by the Predictor, which sets the verbosity (either during init or fit) to the autogluon.timeseries parent logger, which is inherited by all logging.getLogger(__name__) calls in the timeseries module.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@canerturkmen canerturkmen added the module: timeseries related to the timeseries module label Jan 23, 2024
Copy link
Collaborator

@shchur shchur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this looks great! Feel free to merge if the tests are passing.

timeseries/src/autogluon/timeseries/predictor.py Outdated Show resolved Hide resolved
timeseries/src/autogluon/timeseries/predictor.py Outdated Show resolved Hide resolved
Copy link

Job PR-3877-d07a942 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-3877/d07a942/index.html

@canerturkmen canerturkmen merged commit fefec78 into autogluon:master Jan 23, 2024
28 checks passed
@canerturkmen canerturkmen deleted the add-log-to-file branch January 23, 2024 21:58
LennartPurucker pushed a commit to LennartPurucker/autogluon that referenced this pull request Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: timeseries related to the timeseries module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants