dcase_models.util.sed¶
-
dcase_models.util.
sed
(Y_val, Y_predicted, sequence_time_sec=0.5, metric_resolution_sec=1.0, label_list=[])[source]¶ Calculate metrics for Sound Event Detection
Parameters: - Y_val : list of ndarray
2D array with the ground-truth event roll shape: (N_times, N_classes)
- Y_predicted : list of ndarray
2D array with the predicted event roll shape: (N_times, N_classes)
- sequence_time_sec : float
Resolution of Y_val and Y_predicted.
- metric_resolution_sec : float
Resolution of the metrics.
- label_list:
Label list.
Returns: - sef_eval.sound_events.SegmentBasedMetrics
Object with the SED results