sed_eval.util.event_roll.event_list_to_event_roll¶
-
sed_eval.util.event_roll.
event_list_to_event_roll
(source_event_list, event_label_list=None, time_resolution=0.01)[source]¶ Convert event list into event roll, binary activity matrix
Parameters: source_event_list : list, shape=(n,)
A list containing event dicts
event_label_list : list, shape=(k,) or None
A list of containing unique labels in alphabetical order (Default value = None)
time_resolution : float > 0
Time resolution in seconds of the event roll (Default value = 0.01)
Returns: event_roll: np.ndarray, shape=(m,k)
Event roll