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

save_dir fix for MLflowLogger + save_dir tests for others #2502

Merged
merged 37 commits into from
Jul 9, 2020

Conversation

awaelchli
Copy link
Contributor

@awaelchli awaelchli commented Jul 4, 2020

What does this PR do?

Fixes the error "Yaml file not found" when setting the default_root_dir in Trainer to something other than the default.

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 🙃

@awaelchli awaelchli added the bug Something isn't working label Jul 4, 2020
@pep8speaks
Copy link

pep8speaks commented Jul 4, 2020

Hello @awaelchli! Thanks for updating this PR.

Line 243:25: W503 line break before binary operator
Line 244:25: W503 line break before binary operator

Comment last updated at 2020-07-08 02:01:49 UTC

@mergify mergify bot requested a review from a team July 4, 2020 18:43
@codecov
Copy link

codecov bot commented Jul 4, 2020

Codecov Report

Merging #2502 into master will increase coverage by 0%.
The diff coverage is 96%.

@@          Coverage Diff           @@
##           master   #2502   +/-   ##
======================================
  Coverage      90%     90%           
======================================
  Files          69      69           
  Lines        5669    5676    +7     
======================================
+ Hits         5077    5087   +10     
+ Misses        592     589    -3     

@awaelchli awaelchli marked this pull request as ready for review July 4, 2020 20:16
CHANGELOG.md Outdated Show resolved Hide resolved
@mergify mergify bot requested a review from a team July 4, 2020 21:30
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

pytorch_lightning/loggers/mlflow.py Show resolved Hide resolved
@mergify mergify bot requested a review from a team July 4, 2020 21:33
Co-authored-by: Jirka Borovec <[email protected]>
@mergify mergify bot requested a review from a team July 4, 2020 23:11
@mergify mergify bot requested a review from a team July 4, 2020 23:12
@awaelchli awaelchli changed the title save_dir fix for MLflowLogger save_dir fix for MLflowLogger + save_dir tests for others Jul 5, 2020
@williamFalcon
Copy link
Contributor

@awaelchli looks great! ready to merge?

@awaelchli
Copy link
Contributor Author

@williamFalcon while I'm at it, I'd like to add savedir tests to the remaining loggers that don' thave them yet, not much left to do.

@williamFalcon
Copy link
Contributor

@Borda we need these tests since adrian has made changes that could break the other loggers. THis PR can't land without those.

@Borda
Copy link
Member

Borda commented Jul 5, 2020

Ok, let's do it...

@awaelchli awaelchli mentioned this pull request Jul 5, 2020
7 tasks
@awaelchli awaelchli changed the title [wip] save_dir fix for MLflowLogger + save_dir tests for others save_dir fix for MLflowLogger + save_dir tests for others Jul 6, 2020
@awaelchli
Copy link
Contributor Author

awaelchli commented Jul 6, 2020

@williamFalcon verified that the MLFlowLogger is also pickleable here.
WandbLogger has an issue with pytest environment at the moment, so can't include it in tests currently. Filed an issue on their github (wandb/wandb#1138). Manual testing outside pytest however showed WandbLogger pickles and restores fine.

@mergify
Copy link
Contributor

mergify bot commented Jul 7, 2020

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

@williamFalcon williamFalcon merged commit f16b4cf into master Jul 9, 2020
@Borda Borda deleted the bugfix/mlflow-fixes branch July 9, 2020 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants