BirdSongToolbox.context_hand_labeling.label_focus_context

BirdSongToolbox.context_hand_labeling.label_focus_context(focus, labels, starts, contexts, context_func)

Create a list of every instance of the User defined User Label (Focus on One Label)

Parameters
focusstr or int

User defined Label to focus on

labelslist

List of all Labels corresponding to each Epoch in Full_Trials [Epochs]->[Labels]

startslist

List of all Start Times corresponding to each Epoch in Full_Trials (Note: sampled at 30KHz) [Epochs]->[Start Time]

contextslist

list of arrays of context labels for each Epoch. [Epoch #] -> (labels, 4)

col: (Motif Sequence in Bout, First Motif (1-hot), Last Motif (1-hot), Last Syllable Dropped (1-hot))

context_funcfunc

function that returns a bool based on some criterion from the context labels

Returns
Label_Indexlist

List of all start frames of every instances of the label of focus [Num_Trials]->[Num_Exs]

Examples using BirdSongToolbox.context_hand_labeling.label_focus_context