rfwtools.extractor.down_sample.down_sample_extractor

rfwtools.extractor.down_sample.down_sample_extractor(example, signals, step_size=16, query=None)[source]

Standardize and down sample several signals and concatenate into a single row.

Parameters:
  • example (Example) – The example on which to operate

  • signals (List[str]) – An explicit list of the example’s columns to be down sampled (e.g., “1_GMES”).

  • step_size (int) – This controls the down sampling behavior. Only include the first sample out of every ‘step_size’ samples

  • query (Optional[str]) – Argument passed to the ex.event_df to filter data prior to feature extraction, e.g. “Time <= 0”.

Return type:

DataFrame

Returns:

A DataFrame with a single row containing the the down sampled and concatenated signals.