nsdlib.commons module

nsdlib.commons.normalize_dict_values(data: Dict[any, float]) Dict[any, float][source]

Normalize dictionary values to the range [0, 1].

nsdlib.commons.sort_dict_by_value(data: Dict[any, any], reverse=True) Dict[any, any][source]

Sort a dictionary by its values.