Utility functions
This module contains miscellaneous utility functions.
Array utilities
|
Batches a list of arrays of different sizes, grouping them by size. |
Clips each array to the specified maximum sequence length. |
|
|
Takes a concatenated 2D data array and converts it to either a contiguous 2D/3D array or a variable-length 3D array, with one feature vector/matrix per instance. |
|
Frames an array over a given axis with optional padding and copying. |
|
Creates sequences of frames from the given arrays. |
|
The inverse of flat_to_inst(). |
Checks if an array represents mono audio data. |
|
Helper function to make an array of arrays. |
|
Pads each array to the nearest multiple of |
|
|
Shuffles multiple arrays or lists in sync. |
Transpose the time and feature axis of each array. |
Generic utilities
|
Batches an iterable into chunks of size |
|
Removes incompatible keyword arguments. |
|
Returns a new map function that additionally maps tuples to tuples and lists to lists. |
|
Returns a list of the intersection of |
|
Iterate over all ordered subsets of the iterable |
|
Iterate over all subsets of the iterable |
Miscellaneous utilities
|
|
|
Convenience class that acts identically to joblib.Parallel except it uses a tqdm progress bar. |