Is there any way to get the N most relevant features in TSFRESH? Currently, the method extract_relevant_features has a parameter fdr_level, but for a big amount of time series (>1000), the function with a very low fdr_level parameter (< 0.01) returns more than 400 features. I would like to return the 20 or 40 most relevant features.
TSFRESH: Get N most relevant features
1.5k views Asked by Víctor Julio Ramírez At
1
You could use the function
calculate_relevance_table(link to the docu) (which is called internally in theselect_featuresmethod, which in turn is called in theextract_relevant_featuresmethod) to get the p-value for each of the features and then only use the TOP-N sorted by p-value. So the general flow would be:extract_featurescalculate_relevance_tableYou could even tell
tsfreshthe next time to only extract those features (to save a lot of computation time) following this.