1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-17 01:14:35 +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

@@ -110,7 +110,7 @@ class UserManager:
raise ValueError("User data for {} already exists".format(user_id))
with config_file.open("r") as fp:
config = yaml.load(fp)
config = yaml.safe_load(fp)
# load model
model = init_instance_by_config(config["model"])