Closed mansicer closed 2 years ago
File-defined configs v.s. parameter-defined configs
File-defined configs:
Parameter-defined configs:
It will be better for baselax to adopt file-defined configs. However, it will be beneficial to support some features of parameter-defined configs through runtime checking.
This feature is deprecated.
According to the implementation of stable-baseline3, tianshou, and other RL frameworks, it seems to be less beneficial to introduce file-defined configs rather than parameter-defined configs. Currently baselax will keep on a parameter-defined config to maintain better documentation and calling functionalities.
This PR proposes to add the yaml-style config to replace the original
flags
config management. The benefits of using yaml-style configs can be:.yaml
from the training code.py
.The configs are placed in the
baselax/configs
subdirectory with the following structure:The config reader will firstly read the
default
config and then the specifiedalg
config. The moduleconfig.py
will provide such functionalities.