diff --git a/qlib/workflow/cli.py b/qlib/workflow/cli.py index 8270d2db7..f7455797b 100644 --- a/qlib/workflow/cli.py +++ b/qlib/workflow/cli.py @@ -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.Loader) + config = yaml.load(fp, Loader=yaml.SafeLoader) # config the `sys` section sys_config(config, config_path)