Compose
v0.4.0

Table of Contents

  • What is Compose?
  • Install
  • Getting Started
  • Main Concepts

Guides

  • Data Slice Generator
  • Using Compose with Featuretools
  • Using Label Transforms

Examples

  • Predict Next Purchase
  • Predict Remaining Useful Life

Resources

  • Frequently Asked Questions
  • API Reference
    • Label Maker
      • composeml.LabelMaker
        • composeml.LabelMaker.__init__
        • composeml.LabelMaker.search
        • composeml.LabelMaker.set_index
        • composeml.LabelMaker.slice
    • Label Times
    • Label Plots
  • Changelog
Compose
  • Docs »
  • API Reference »
  • composeml.LabelMaker »
  • composeml.LabelMaker.search
  • Edit on GitHub

composeml.LabelMaker.search¶

LabelMaker.search(df, num_examples_per_instance, minimum_data=None, gap=None, drop_empty=True, label_type=None, verbose=True, *args, **kwargs)[source]¶

Searches the data to calculates labels.

Parameters:
  • 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.
  • label_type (str) – The label type can be “continuous” or “categorical”. Default value is the inferred label type.
  • verbose (bool) – Whether to render progress bar. Default value is True.
  • *args – Positional arguments for labeling function.
  • **kwargs – Keyword arguments for labeling function.
Returns:

Calculated labels with cutoff times.

Return type:

lt (LabelTimes)

Next Previous

© Copyright 2020, Feature Labs, Inc. Revision 5e0511b7.