Utilities

Functions to handle event lists (list of event items), event rolls (event activity indicator matrix used in evaluation), and scene lists.

Event list operations

event_list.unique_event_labels(event_list) Find the unique event labels
event_list.unique_files(event_list) Find the unique files
event_list.filter_event_list(event_list[, ...]) Filter event list based on given fields
event_list.max_event_offset(event_list) Find the offset (end-time) of last event

Event roll operations

event_roll.event_list_to_event_roll(...[, ...]) Convert event list into event roll, binary activity matrix
event_roll.pad_event_roll(event_roll, length) Pad event roll’s length to given length
event_roll.match_event_roll_lengths(...[, ...]) Fix the length of two event rolls

Scene list operations

scene_list.unique_scene_labels(scene_list) Find the unique scene labels

Event matching operations

event_matching.bipartite_match(graph) Find maximum cardinality matching of a bipartite graph (U,V,E).