dcase_util.containers.MetaDataContainer.event_inactivity

MetaDataContainer.event_inactivity(event_label='inactivity', source_event_labels=None, duration_list=None)[source]

Get inactivity segments between events as event list

Parameters
event_labelstr

Event label used for inactivity

source_event_labelslist of str

Event labels to be taken into account. If none given, all events are considered. Default value None

duration_listdict

Dictionary where filename is a key and value is the total duration of the file. If none given, max event offset is used to get file length. Default value None

Returns
MetaDataContainer