Update src/mlpack/bindings/python/mlpack/preprocess_json_params.py

Co-authored-by: Ryan Curtin <ryan@ratml.org>
This commit is contained in:
Nippun Sharma
2021-05-27 18:06:33 +05:30
committed by GitHub
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: