Closed lkhphuc closed 1 year ago
Hi @lkhphuc , thanks for posting!
Hmmmm. I'm slightly confused. Could you explain why this should be allowed? Does it enable something that json/yaml files don't?
This might also be a use-case for subgroups. Have you tried those before?
I'll go ahead and close this for now, but feel free to ping me (or reopen this if you can) if you think this deserves some attention.
Is your feature request related to a problem? Please describe. Config file currently support as json and yaml. I wonder whether it is possible to use a python file containing the dataclasses as the config file directly.
Describe the solution you'd like For example in
main.py
:In a
cfg/baseline.py
:Now the command line accepts:
python main.py --config_path=cfg/baseline.py