uf3.util.parallel.split_zip¶
- split_zip(n_batches, *args)[source]¶
General splitting function for one or more list-like objects.
- Parameters
n_batches (int) – number of desired batches.
*args – one or more list-like objects of equal length.
- Returns
- list of batched data. Resulting batches
may not be equal in size.
- Return type
batches (list)