composeml.LabelMaker.__init__

LabelMaker.__init__(target_entity, time_index, labeling_function=None, window_size=None, label_type=None)[source]

Creates an instance of label maker.

Parameters:
  • target_entity (str) – Entity on which to make labels.
  • time_index (str) – Name of time column in the data frame.
  • labeling_function (function or list(function) or dict(str=function)) – Function, list of functions, or dictionary of functions that transform a data slice. When set as a dictionary, the key is used as the name of the labeling function.
  • window_size (str or int) – Duration of each data slice. The default value for window size is all future data.