nip.utils.data.unflatten_dict_keys#
- nip.utils.data.unflatten_dict_keys(flat_data: dict, separator: str = '.') dict [source]#
Unflatten a dictionary to a nested by splitting keys by a separator.
Creates a nested dictionary structure from a flat dictionary where keys are joined by a separator. E.g. {“a.b.c”: 1} becomes {“a”: {“b”: {“c”: 1}}}.