dcase_models.util.predictions_temporal_integration¶
-
dcase_models.util.
predictions_temporal_integration
(Y_predicted, type='sum')[source]¶ Integrate temporal dimension.
Parameters: - Y_predicted : ndarray
Signal to be integrated. e.g. shape (N_times, N_classes)
- type : str
Type of integration (‘sum’, ‘mean’, ‘autopool’)
Returns: - array
Integrated signal. e.g. shape (N_classes,)