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

Rename log_save_interval, row_log_interval #3748

Merged
merged 18 commits into from
Oct 6, 2020
Merged

Rename log_save_interval, row_log_interval #3748

merged 18 commits into from
Oct 6, 2020

Conversation

teddykoker
Copy link
Contributor

@teddykoker teddykoker commented Sep 30, 2020

What does this PR do?

Fixes #3690

row_log_interval -> log_every_n_steps
log_save_interval -> flush_logs_every_n_steps

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • 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? Otherwise, we ask you to create a separate PR for every change.
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?
  • Did you verify new and existing tests pass locally with your changes?
  • If you made a notable change (that affects users), did you update the CHANGELOG?

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@mergify mergify bot requested a review from a team September 30, 2020 16:02
@teddykoker teddykoker changed the title Rename Rename log_save_interval, row_log_interval Sep 30, 2020
@rohitgr7
Copy link
Contributor

How about just log_interval and flush_logs_interval?

@teddykoker
Copy link
Contributor Author

@rohitgr7 I believe this is what we decided on (cc @edenlightning). We can put up a poll in slack if people want though.

@codecov
Copy link

codecov bot commented Sep 30, 2020

Codecov Report

Merging #3748 into master will increase coverage by 8%.
The diff coverage is 82%.

@@           Coverage Diff           @@
##           master   #3748    +/-   ##
=======================================
+ Coverage      83%     90%    +8%     
=======================================
  Files         108     108            
  Lines        8807    8388   -419     
=======================================
+ Hits         7284    7584   +300     
+ Misses       1523     804   -719     

@codecov
Copy link

codecov bot commented Sep 30, 2020

Codecov Report

Merging #3748 into master will increase coverage by 4%.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master   #3748    +/-   ##
=======================================
+ Coverage      83%     88%    +4%     
=======================================
  Files         117     115     -2     
  Lines        9106    8913   -193     
=======================================
+ Hits         7587    7799   +212     
+ Misses       1519    1114   -405     

@teddykoker teddykoker added ready PRs ready to be merged priority: 0 High priority task labels Sep 30, 2020
Copy link
Contributor

@awaelchli awaelchli left a comment

Choose a reason for hiding this comment

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

If you guys already decided, then I'm happy with it. Though if there was a vote, I would vote for a shorter name with fewer underscores.

@mergify mergify bot requested a review from a team September 30, 2020 22:05
@mergify mergify bot requested a review from a team October 1, 2020 08:30
@williamFalcon
Copy link
Contributor

interval is not clear enough sadly...

interval could be interpreted as: [1, 5] or 5 or 0.2

steps shows it's about steps

@Borda Borda added the design Includes a design discussion label Oct 2, 2020
Copy link
Member

@Borda Borda left a comment

Choose a reason for hiding this comment

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

pytorch_lightning/trainer/trainer.py Outdated Show resolved Hide resolved
pytorch_lightning/trainer/trainer.py Outdated Show resolved Hide resolved
pytorch_lightning/trainer/trainer.py Outdated Show resolved Hide resolved
pytorch_lightning/trainer/trainer.py Show resolved Hide resolved
@Borda Borda removed the ready PRs ready to be merged label Oct 2, 2020
@mergify mergify bot requested a review from a team October 2, 2020 11:15
@Borda
Copy link
Member

Borda commented Oct 2, 2020

@teddykoker the label ready-to-go in meant for reliever not for PR author :]

@mergify
Copy link
Contributor

mergify bot commented Oct 3, 2020

This pull request is now in conflict... :(

@pep8speaks
Copy link

pep8speaks commented Oct 3, 2020

Hello @teddykoker! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-10-06 09:33:23 UTC

@mergify
Copy link
Contributor

mergify bot commented Oct 4, 2020

This pull request is now in conflict... :(

@teddykoker teddykoker requested a review from Borda October 4, 2020 18:35
@mergify
Copy link
Contributor

mergify bot commented Oct 4, 2020

This pull request is now in conflict... :(

@rohitgr7
Copy link
Contributor

rohitgr7 commented Oct 6, 2020

need to update in #3881 files in case it gets merged.

Copy link
Member

@Borda Borda left a comment

Choose a reason for hiding this comment

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

still, some deprecation/compatibility is missing

CHANGELOG.md Outdated Show resolved Hide resolved
pytorch_lightning/trainer/training_loop.py Show resolved Hide resolved
pytorch_lightning/trainer/trainer.py Outdated Show resolved Hide resolved
pytorch_lightning/trainer/trainer.py Show resolved Hide resolved
tests/trainer/test_trainer.py Outdated Show resolved Hide resolved
@mergify mergify bot requested a review from a team October 6, 2020 08:22
Copy link
Member

@Borda Borda left a comment

Choose a reason for hiding this comment

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

fixed, shall be fine now :]

@teddykoker
Copy link
Contributor Author

Thanks @Borda :)

@teddykoker teddykoker merged commit 9600926 into Lightning-AI:master Oct 6, 2020
@teddykoker
Copy link
Contributor Author

Ugh I updated everything at the time of the PR, there must have been extra additions

@teddykoker
Copy link
Contributor Author

I'll need to open a new PR i guess

@rohitgr7
Copy link
Contributor

rohitgr7 commented Oct 6, 2020

maybe keep that open until the release to avoid this.

@Borda Borda added this to the 0.10.0 milestone Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Includes a design discussion priority: 0 High priority task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename row_log_interval and log_save_interval
7 participants