keepsake icon indicating copy to clipboard operation
keepsake copied to clipboard

Proper display of nested dict in param.

Open lkhphuc opened this issue 4 years ago • 1 comments
trafficstars

Screenshot 2021-03-17 at 12 51 28

Support proper display of nested params file since many application provided a nested dictionary of parameters. For example:

Params
data._target_:             project.data.MNISTDataModule
data.batch_size:         32
model.base:                resnet18
model.pretrain:          true
model.optim.lr:          1e-3

lkhphuc avatar Mar 17 '21 12:03 lkhphuc

Yes! Thanks for the suggestion. A simple solution would be to just format the JSON with newlines and indenting. Another alternative would be to have a YAML-like value, which might be easier to read and see the structure of.

bfirsh avatar Mar 17 '21 19:03 bfirsh