-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Added basic file logger #2721
Added basic file logger #2721
Conversation
54e57aa
to
35c235d
Compare
35c235d
to
f0d37de
Compare
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.
Already looks pretty good. The comments for docstrings and typing apply to all functions and classes :)
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.
This looks really nice 😃 Agree that this should be changed renamed to CSVLogger
. It would also be good to add the save_dir
property to the logger so that checkpoints are saved in the right place (this may just mean renaming the root_dir
property?)
I am not very convinced about CSV format for logging, then you would have plant hard time with any separator you use... |
@Borda Whoops, should have said 'should be renamed to |
Codecov Report
@@ Coverage Diff @@
## master #2721 +/- ##
=======================================
- Coverage 90% 86% -4%
=======================================
Files 78 79 +1
Lines 7055 7161 +106
=======================================
- Hits 6362 6177 -185
- Misses 693 984 +291 |
@ethanwharris Added |
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.
LGTM :)
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.
This looks very similar to Test-Tube logger, mind clarify what is the difference?
well, would it be easier to make |
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.
LGTM - confirmed working locally 😃
This pull request is now in conflict... :( |
@@ -226,6 +232,7 @@ def on_batch_start(self, trainer, pl_module): | |||
@pytest.mark.skipif(platform.system() == "Windows", reason="Distributed training is not supported on Windows") | |||
@pytest.mark.parametrize("logger_class", [ | |||
TensorBoardLogger, | |||
# CSVLogger, # todo |
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.
any idea why this test is failing?
cc: @PyTorchLightning/core-contributors
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.
💪🏻🚀
What does this PR do?
This PR implements basic file logger as discussed in #1803
Fixes #1803
Before submitting