Skip to content

How to extract only a specific subset of features for real-time prediction? #1032

Answered by nils-braun
teobucci asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this should indeed be possible!
When extracting features, you can choose the extraction settings that define which feature calculators (using which settings) to use. You can choose one of the predefined settings - but you can definitely also create one particularly for your own needs. We have a convenience function https://tsfresh.readthedocs.io/en/latest/api/tsfresh.feature_extraction.html#tsfresh.feature_extraction.settings.from_columns for this. My suggestion would be:

  1. extract all features like you described
  2. do the selection
  3. Compile the settings object using the from_columns method and store it (settinhs are pickleable)
  4. For the real-time extraction, only set these settings.
    You m…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@teobucci
Comment options

Answer selected by teobucci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants