dcase_util.containers.BinaryMatrix2DContainer.pad

BinaryMatrix2DContainer.pad(length, binary_matrix=None)[source]

Pad binary matrix along time axis

Parameters
lengthint

Length to be padded

binary_matrixnp.ndarray, shape=(time steps, amount of classes)

Binary matrix

Returns
np.ndarray [shape=(number of classes,t)]

Padded binary matrix