dcase_util.data.DecisionEncoder.many_hot

DecisionEncoder.many_hot(frame_decisions, label_list=None, time_axis=1)[source]

Many hot

Parameters
frame_decisionsnumpy.ndarray [shape=(d,t) or (t,d)]

Frame decisions

label_listlist or str

Label list, if None given one for class initializer is used. Default value None

time_axisint

Axis index for frames in the matrix Default value 1

Returns
list
Raises
ValueError

No label list given as method parameter or class initializer parameter