sup3r.utilities.utilities.round_array
- round_array(arr, digits=3)[source]
Method to round elements in an array or list. Used a lot in logging losses from the data-centric model
- Parameters:
arr (list | ndarray) – List or array to round elements of
digits (int, optional) – Number of digits to round to, by default 3
- Returns:
list – List with rounded elements