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

Improve val step logging #7351

Merged
merged 7 commits into from
May 7, 2021
Merged

Improve val step logging #7351

merged 7 commits into from
May 7, 2021

Conversation

ethanwharris
Copy link
Member

@ethanwharris ethanwharris commented May 4, 2021

What does this PR do?

Fixes #7346

  • Changes val step metrics to no longer append /epoch_* to the metric names (which creates many plots in e.g. tensorboard)
  • Instead they now store a local step for val and test. Not ideal but this will be changed again in upcoming logger connector refactors (cc @carmocca)
  • Refactors log_evaluation_step_metrics to be in the LoggerConnector (where it belongs haha)

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • [N/A] Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?

Make sure you had fun coding 🙃

@codecov
Copy link

codecov bot commented May 4, 2021

Codecov Report

Merging #7351 (076cda8) into master (2a740eb) will increase coverage by 0%.
The diff coverage is 96%.

@@           Coverage Diff           @@
##           master   #7351    +/-   ##
=======================================
  Coverage      91%     92%            
=======================================
  Files         200     200            
  Lines       12925   12991    +66     
=======================================
+ Hits        11801   11904   +103     
+ Misses       1124    1087    -37     

@ethanwharris ethanwharris added the bug Something isn't working label May 4, 2021
@awaelchli
Copy link
Contributor

image

Red: master
Blue: this branch

You mention this will change again in a later "refactor". What will change?

@ethanwharris
Copy link
Member Author

@awaelchli I think the functionality will stay the same, only the code will change. The screenshot you show is correct and gives the new behaviour following this PR. Val step logging is and odd usage anyway but at least this stops the potentially hundreds of graphs from being created in tensorboard.

@awaelchli
Copy link
Contributor

Okay, as long as all the other logging for training and epoch end is not affected. Consider changing the labelling here because these per-epoch plots being created was a design decision and therefore expected behaviour.

@ethanwharris ethanwharris added feature Is an improvement or enhancement and removed bug Something isn't working labels May 5, 2021
@ethanwharris ethanwharris changed the title Fix val step logging Improve val step logging May 5, 2021
@awaelchli
Copy link
Contributor

Val step logging is and odd usage anyway

could not agree more 🤣

@Borda Borda enabled auto-merge (squash) May 5, 2021 19:03
Co-authored-by: Edgar Riba <edgar.riba@gmail.com>
…onnector.py

Co-authored-by: ananthsub <ananth.subramaniam@gmail.com>
@mergify mergify bot added the has conflicts label May 6, 2021
@carmocca carmocca added this to the v1.4 milestone May 6, 2021
@carmocca carmocca added the logging Related to the `LoggerConnector` and `log()` label May 6, 2021
@mergify mergify bot removed the has conflicts label May 6, 2021
@awaelchli awaelchli added the ready PRs ready to be merged label May 7, 2021
@Borda Borda merged commit 45143fd into master May 7, 2021
@Borda Borda deleted the bugfix/metric_logging branch May 7, 2021 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Is an improvement or enhancement logging Related to the `LoggerConnector` and `log()` ready PRs ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Logging Separately Per Epoch
8 participants