{"name1": 0.66, "name2": 3, "name3": -0.15}
params_dict = {
k: v for k, v in zip(sorted(search_space.keys()), point_as_list)
}
return params_dict
After Change
>>> point_asdict(search_space, point_as_list)
{"name1": 0.66, "name2": 3, "name3": -0.15}
params_dict = OrderedDict()
for k, v in zip(sorted(search_space.keys()), point_as_list):
params_dict[k] = v
return params_dict