Skip to content

Error with feature selection. #873

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

You must be logged in to vote

Hi @renzha-miun!
tsfresh will extract one set of features (= one row in the output dataframe) per time series you give to it - which means one per unique ID. It will treat all data for the same ID as belonging together (and forming one time series).
So as you have 26 IDs, your resulting dataframe will have 26 rows.
This is optimized for the typical classification use case: you want to predict a single class for each time series (or ID). So we assume you have as many entries in the target vector as you have time series (and IDs).

If you want to do a prediction use case (which would fit to having as many target entries as time steps), you need to "roll" the data first. Have a look into our d…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nils-braun
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