LabelMaker.
search
Searches the data to calculates labels.
df (DataFrame) – Data frame to search and extract labels.
num_examples_per_instance (int or dict) – The expected number of examples to return from each entity group. A dictionary can be used to further specify the expected number of examples to return from each label.
minimum_data (str) – Minimum data before starting search. Default value is first time of index.
gap (str or int) – Time between examples. Default value is window size. If an integer, search will start on the first event after the minimum data.
drop_empty (bool) – Whether to drop empty slices. Default value is True.
verbose (bool) – Whether to render progress bar. Default value is True.
*args – Positional arguments for labeling function.
**kwargs – Keyword arguments for labeling function.
Calculated labels with cutoff times.
lt (LabelTimes)