dcase_util.containers.MetaDataContainer.stats

MetaDataContainer.stats(event_label_list=None, scene_label_list=None, tag_list=None, calculate_event_activity=False, duration_list=None)[source]

Statistics of the container content

Parameters
event_label_listlist of str

List of event labels to be included in the statistics. If none given, all unique labels used Default value None

scene_label_listlist of str

List of scene labels to be included in the statistics. If none given, all unique labels used Default value None

tag_listlist of str

List of tags to be included in the statistics. If none given, all unique tags used Default value None

calculate_event_activitybool

Calculate event activity and inactivity, might be slow as the corresponding audio recording length has to be loaded. Default value False

duration_listdict

Dictionary where filename is a key and value is the total duration of the file. Default value None

Returns
dict