convert_flat_dict_to_nested_dict#

composer.utils.convert_flat_dict_to_nested_dict(flat_dict)[source]#

Converts flat dictionary separated by slashes to nested dictionary.

Parameters

flat_dict (dict) โ€“ flat dictionary containing no sub-dictionary with keys separated by slashes. e.g. {โ€˜aโ€™:1, โ€˜b/cโ€™:2}

Returns

dict โ€“ a nested dict.