dcase_util.data.DecisionEncoder.process_activity
- DecisionEncoder.process_activity(activity_matrix, window_length, operator='median_filtering', time_axis=1)[source]
Process activity array (binary)
- Parameters
- activity_matrixnumpy.ndarray
Activity matrix
- window_lengthint
Window length in analysis frame amount
- operatorstr
Operator to be used [‘median_filtering’] Default value ‘median_filtering’
- time_axisint
Time axis Default value 1
- Returns
- numpy.ndarray
Processed activity
- Raises
- AssertionError
Unknown operator.