dcase_util.containers.MetaDataContainer.to_event_roll

MetaDataContainer.to_event_roll(label_list=None, time_resolution=0.01, label='event_label', length_seconds=None)[source]

Event roll

Event roll is binary matrix indicating event activity withing time segment defined by time_resolution.

Parameters
label_listlist

List of labels in correct order Default value None

time_resolutionfloat > 0.0

Time resolution used when converting event into event roll. Default value 0.01

labelstr

Meta data field used to create event roll Default value ‘event_label’

length_secondsfloat

Event roll length in seconds Default value None

Returns
numpy.ndarray [shape=(math.ceil(data_length * 1 / time_resolution), amount of classes)]