Update src/mlpack/bindings/python/mlpack/preprocess_json_params.py
Co-authored-by: Ryan Curtin <ryan@ratml.org>
This commit is contained in:
co-authored by
Ryan Curtin
parent
b29c92b154
commit
00e70ca799
@@ -257,7 +257,7 @@ def insert_in_dic(dic, path, key, val):
|
||||
after following a particular path.
|
||||
'''
|
||||
temp = dic[path[0]]
|
||||
for idx in range(1,len(path)):
|
||||
for idx in range(1, len(path)):
|
||||
if "listidx_" in path[idx]:
|
||||
temp = temp[int(path[idx].replace("listidx_", ""))]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user