dcase_util.data.ManyHotEncoder.encode

ManyHotEncoder.encode(label_list, length_frames=None, length_seconds=None)[source]

Generate one hot binary matrix

Parameters
label_listlist of str

Class labels to be hot

length_framesint

length of binary matrix Default value None

length_secondsfloat

length of binary matrix in seconds Default value None

Returns
self