-
Notifications
You must be signed in to change notification settings - Fork 3.6k
feature: add sub_dir
to CSV logger constructor
#21045
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
base: master
Are you sure you want to change the base?
feature: add sub_dir
to CSV logger constructor
#21045
Conversation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @Shoumik-Gandre.
Could you also update lightning/pytorch/loggers/csv_logs
so this behavior is consistent across both Fabric and the Trainer?
didn't wanted to approve for now, and wait for test results
Co-authored-by: Bhimraj Yadav <bhimrajyadav977@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #21045 +/- ##
=======================================
Coverage 87% 87%
=======================================
Files 269 269
Lines 23501 23515 +14
=======================================
+ Hits 20487 20505 +18
+ Misses 3014 3010 -4 |
sub_dir
to CSV logger constructor
for more information, see https://pre-commit.ci
Thanks for the review, @deependujha - I've implemented the requested changes. What changed
Why it helps
Safety
@deependujha could you take another look and approve if this matches your expectations? Thanks. looking forward to continued contributions! ✅All CI checks are green |
Hey @williamFalcon hope you’re doing well! |
@@ -92,13 +92,15 @@ def __init__( | |||
version: Optional[Union[int, str]] = None, | |||
prefix: str = "", | |||
flush_logs_every_n_steps: int = 100, | |||
sub_dir: Optional[_PATH] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just missing the docstring here above.
sub_dir: Sub-directory to group CSV logs. If a ``sub_dir`` argument is passed
then logs are saved in ``/root_dir/name/version/sub_dir/``. Defaults to ``None`` in which case
logs are saved in ``/root_dir/name/version/``.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc: @Shoumik-Gandre
Hey team. I was wondering if there's anything more I needed to do to get this PR merged? |
you are fine, thank you for your patience, we are waiting Will's approval as he is solo owner of loggers |
sub_dir
to CSV logger constructorsub_dir
to CSV logger constructor
What does this PR do?
Fixes #21035
Before submitting
yes
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Reviewer checklist
📚 Documentation preview 📚: https://pytorch-lightning--21045.org.readthedocs.build/en/21045/