Data Utilities
set_seed(seed)
Set seed function imported from transformers.
Source code in src/deeponto/utils/data_utils.py
22 23 24 |
|
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
27 28 29 30 |
|
uniqify(ls)
Return a list of unique elements without messing around the order
Source code in src/deeponto/utils/data_utils.py
33 34 35 36 |
|
print_dict(dic)
Pretty print a dictionary.
Source code in src/deeponto/utils/data_utils.py
39 40 41 42 43 |
|
Last update:
February 1, 2023
Created: January 22, 2023
Created: January 22, 2023
GitHub: