dcase_util.data.BinaryMatrixEncoder.pad

BinaryMatrixEncoder.pad(length, binary_matrix=None)

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