1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-12 07:16:54 +08:00

yml afe load

This commit is contained in:
Young
2021-02-17 05:17:18 +00:00
committed by you-n-g
parent 77830a546e
commit 50d5fcf61e
6 changed files with 7 additions and 7 deletions

View File

@@ -147,7 +147,7 @@ def init_from_yaml_conf(conf_path, **kwargs):
"""
with open(conf_path) as f:
config = yaml.load(f, Loader=yaml.SafeLoader)
config = yaml.safe_load(f)
config.update(kwargs)
default_conf = config.pop("default_conf", "client")
init(default_conf, **config)