1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-07 13:00:58 +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

@@ -44,7 +44,7 @@ def sys_config(config, config_path):
# worflow handler function
def workflow(config_path, experiment_name="workflow", uri_folder="mlruns"):
with open(config_path) as fp:
config = yaml.load(fp, Loader=yaml.SafeLoader)
config = yaml.safe_load(fp)
# config the `sys` section
sys_config(config, config_path)