Data Utilities
set_seed(seed)
Set seed function imported from transformers.
Source code in src/deeponto/utils/data_utils.py
21 22 23 |
|
sort_dict_by_values(dic, desc=True, k=None)
Return a sorted dict by values with first k reserved if provided.
Source code in src/deeponto/utils/data_utils.py
26 27 28 29 |
|
uniqify(ls)
Return a list of unique elements without messing around the order
Source code in src/deeponto/utils/data_utils.py
32 33 34 35 |
|
print_dict(dic)
Pretty print a dictionary.
Source code in src/deeponto/utils/data_utils.py
38 39 40 41 42 |
|
Last update:
February 1, 2023
Created: January 22, 2023
Created: January 22, 2023
GitHub: