-
Notifications
You must be signed in to change notification settings - Fork 3.6k
docs(csv_logs): Clarify CSV and YAML logging distinction and improve examples #20951
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?
Conversation
…les and file structure
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.
this is great extension, @williamFalcon mind approve it? 🙏
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.
Looks great
self.hparams.update(params) | ||
hparams_file = os.path.join(self.log_dir, self.NAME_HPARAMS_FILE) | ||
save_hparams_to_yaml(hparams_file, self.hparams) | ||
|
||
|
||
class CSVLogger(Logger, FabricCSVLogger): | ||
r"""Log to local file system in yaml and CSV format. | ||
r"""Log to local file system in CSV and YAML format. |
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.
could we add the same docstring to the fabric CSVLogger
https://github.com/Lightning-AI/pytorch-lightning/blob/master/src/lightning/fabric/loggers/csv_logs.py
just copy paste
@@ -140,6 +194,21 @@ def save_dir(self) -> str: | |||
@override | |||
@rank_zero_only | |||
def log_hyperparams(self, params: Optional[Union[dict[str, Any], Namespace]] = None) -> None: | |||
"""Log hyperparameters to YAML format. |
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.
could we add the same docstring to the fabric CSVLogger
https://github.com/Lightning-AI/pytorch-lightning/blob/master/src/lightning/fabric/loggers/csv_logs.py
just copy paste
What does this PR do?
Fixes #20724
Improves the CSVLogger documentation to clearly explain the distinction between CSV and YAML logging formats and provides comprehensive examples.
Before submitting
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--20951.org.readthedocs.build/en/20951/