1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-04 11:30:57 +08:00

online serving v10

This commit is contained in:
lzh222333
2021-05-07 09:59:15 +00:00
parent 84c56f13bd
commit 9dfd001f6f
14 changed files with 426 additions and 345 deletions

View File

@@ -732,7 +732,7 @@ def flatten_dict(d, parent_key="", sep="."):
"""
items = []
for k, v in d.items():
new_key = parent_key + sep + k if parent_key else k
new_key = parent_key + sep + str(k) if parent_key else k
if isinstance(v, collections.abc.MutableMapping):
items.extend(flatten_dict(v, new_key, sep=sep).items())
else: