dcase_models.util.classification¶
-
dcase_models.util.classification(Y_val, Y_predicted, label_list=[])[source]¶ Calculate metrics for Audio Classification
Parameters: - Y_val : ndarray
2D array with the ground-truth event roll shape: (N_times, N_classes)
- Y_predicted : ndarray
2D array with the predicted event roll shape: (N_times, N_classes)
- label_list:
Label list.
Returns: - sef_eval.scenes.SceneClassificationMetrics
Object with the classification results