dcase_util.data.DecisionEncoder.majority_vote

DecisionEncoder.majority_vote(frame_decisions, time_axis=1)[source]

Majority vote.

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

Frame decisions

time_axisint

Axis index for time in the matrix Default value 1

Returns
str

Class label