Support hierarchical dict (#1152)

* Add support for hierarchical dict

* Support nested Namespace

* Add docstring

* Migrate hparam flattening to each logger

* Modify URLs in CHANGELOG

* typo

* Simplify the conditional branch about Namespace

Co-Authored-By: Jirka Borovec <Borda@users.noreply.github.com>

* Update CHANGELOG.md

Co-Authored-By: Jirka Borovec <Borda@users.noreply.github.com>

* added examples section to docstring

* renamed _dict -> input_dict

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
This commit is contained in:
So Uchida
2020-03-19 09:15:47 -04:00
committed by GitHub
co-authored by Jirka Borovec
parent 22a7264e9a
commit 01b8991c5a
9 changed files with 45 additions and 5 deletions
+2 -1
View File
@@ -108,8 +108,9 @@ def test_tensorboard_log_hyperparams(tmpdir):
"int": 1,
"string": "abc",
"bool": True,
"dict": {'a': {'b': 'c'}},
"list": [1, 2, 3],
"namespace": Namespace(foo=3),
"namespace": Namespace(foo=Namespace(bar='buzz')),
"layer": torch.nn.BatchNorm1d
}
logger.log_hyperparams(hparams)