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

Add TRAINS experiment manager support #1122

Merged
merged 15 commits into from
Mar 14, 2020

Conversation

bmartinn
Copy link
Contributor

@bmartinn bmartinn commented Mar 11, 2020

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 to update the docs?
  • Did you write any new necessary tests?
  • If you made a notable change (that affects users), did you update the CHANGELOG?

What does this PR do?

Extend the compatibility of pytorch-lightning logger to support the TRAINS experiment manager. #929

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?

Yes! 😄

@pep8speaks
Copy link

pep8speaks commented Mar 11, 2020

Hello @bmartinn! Thanks for updating this PR.

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

Comment last updated at 2020-03-13 01:19:08 UTC

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.

Great addition!

  • pls remove duplicate types
  • add tests
  • update chnagelog

@@ -0,0 +1,5 @@
"""
Copy link
Member

Choose a reason for hiding this comment

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

this is not needed, we have here just loggers which existed in the time we were using logging

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I remove the file all together ?

Copy link
Member

Choose a reason for hiding this comment

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

yes, pls

pytorch_lightning/loggers/trains.py Outdated Show resolved Hide resolved
pytorch_lightning/loggers/trains.py Outdated Show resolved Hide resolved
pytorch_lightning/loggers/trains.py Outdated Show resolved Hide resolved
pytorch_lightning/loggers/trains.py Outdated Show resolved Hide resolved
pytorch_lightning/loggers/trains.py Outdated Show resolved Hide resolved
@Borda Borda added feature Is an improvement or enhancement let's do it! approved to implement labels Mar 11, 2020
@Borda Borda added this to the 0.7.2 milestone Mar 11, 2020
@Borda Borda linked an issue Mar 11, 2020 that may be closed by this pull request
@Borda Borda changed the title Feature: Add TRAINS experiment manager support Add TRAINS experiment manager support Mar 11, 2020
use logging
fix typing and pep8
@bmartinn bmartinn requested a review from Borda March 11, 2020 23:36
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.

LGTM 🚀 great work!


"""

import logging
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
import logging
import logging as log

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, fixed.

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.

LGTM 🚀
cc: @PyTorchLightning/core-contributors

@Borda Borda added the ready PRs ready to be merged label Mar 14, 2020
@williamFalcon williamFalcon merged commit c0bedd2 into Lightning-AI:master Mar 14, 2020
tullie pushed a commit to tullie/pytorch-lightning that referenced this pull request Apr 3, 2020
* Add allegro.ai TRAINS experiment manager support

* improve docstring and type hinting, fix the bug in log_metrics, add support torch.Tensor to input into log_image

* complete missing docstring of constructor's arguments

* fix docs

* pep8

* pep8

* remove redundant typing
use logging
fix typing and pep8

* remove deprecated interface

* add TrainsLogger test

* add TrainsLogger PR in CHANGELOG

* add id/name property documentation

* change logging as log

Co-authored-by: bmartinn <>
Co-authored-by: Sou Uchida <s.aiueo32@gmail.com>
@Borda Borda removed this from the v0.7. milestone Apr 18, 2021
@Borda Borda added this to the v0.7.x milestone Apr 18, 2021
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 let's do it! approved to implement ready PRs ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add TRAINS experiment manager support
5 participants