dcase_util.data.ProbabilityEncoder.collapse_probabilities_windowed
- ProbabilityEncoder.collapse_probabilities_windowed(probabilities, window_length, operator='sliding_sum', time_axis=1)[source]
Collapse probabilities with a sliding window. Window hop size is one.
- Parameters
- probabilitiesnumpy.ndarray
Probabilities to be collapsed
- window_lengthint
Window length in analysis frame amount.
- operatorstr (‘sliding_sum’, ‘sliding_mean’, ‘sliding_median’)
Operator to be used Default value ‘sliding_sum’
- time_axisint
time axis Default value 1
- Returns
- numpy.ndarray
collapsed probabilities
- Raises
- AssertionError
Unknown operator