gin-config
gin-config copied to clipboard
TOML-like setting groups/sections [Enchancement]
Right now adding and removing new config values is quite tedious as we need to repeat the class/function name for each field:
MyClass.batch_size = 100
MyClass.num_epochs = 100
...
If the gin
format resemble TOML so much, it would seem natural to introduce the section headers, i.e.:
[MyClass]
batch_size = 100
num_epochs = 100
...
We have thought about this but never found a nice Pythonic way to implemented it. If you have suggestions and want to make a proposal, please do so.
Is there any issue where it was already discussed?
We are working on a version that would allow using indentation to avoid repetition.
Scope/module.MyClass:
batch_size = 100
num_epochs = 100
#Equivalted to
Scope/module.MyClass.batch_size = 100
Scope/module.MyClass.num_epochs = 100
Staty tuned.
We are working on a version that would allow using indentation to avoid repetition.
Scope/module.MyClass: batch_size = 100 num_epochs = 100 #Equivalted to Scope/module.MyClass.batch_size = 100 Scope/module.MyClass.num_epochs = 100
Staty tuned.
Hi, @sguada. Is this currently working?
Thanks, Marcos
Would also love this :3
We are working on a version that would allow using indentation to avoid repetition.
Scope/module.MyClass: batch_size = 100 num_epochs = 100 #Equivalted to Scope/module.MyClass.batch_size = 100 Scope/module.MyClass.num_epochs = 100
Staty tuned.
Would love this.