-
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
flatten Wandb hyperparameters dict #2459
Conversation
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.
Let's also add a changelog entry
@awaelchli I am not too familiar with the failing tests, could you explain what else I need to change? |
ok, you need to look at this test
See the last two lines here. |
@anthonytec2 Actually it's all fine. I looked at it and you just need to update the tests. Go to tests/loggers/test_wandb, in the function test_wandb_logger change the lines logger.log_hyperparams({'test': None})
wandb.init().config.update.assert_called_once_with({'test': None}, allow_val_change=True) to logger.log_hyperparams({'test': None, 'nested': {'a': 1}, 'b': [2, 3, 4]})
wandb.init().config.update.assert_called_once_with(
{'test': 'None', 'nested/a': 1, 'b': [2, 3, 4]},
allow_val_change=True,
) As you can see, the flattening works while leaving the other attributes untouched. If you modify like this it should pass the tests. |
Hello @anthonytec2! Thanks for updating this PR.
Comment last updated at 2020-07-08 00:42:21 UTC |
Codecov Report
@@ Coverage Diff @@
## master #2459 +/- ##
======================================
- Coverage 90% 89% -0%
======================================
Files 69 69
Lines 5669 5670 +1
======================================
- Hits 5077 5060 -17
- Misses 592 610 +18 |
What does this PR do?
Flattens Wandb Params
Fixes #2458
Before submitting
Did you have fun?
Make sure you had fun coding 🙃