blue-yonder / tsfresh

Automatic extraction of relevant features from time series:

Home Page:http://tsfresh.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

calculate_relevance_table() does not work with y in form of numpy.ndarray

nicolasj92 opened this issue · comments

The problem:
The function feature_selection.relevance.calculate_relevance_table() is supposed to support numpy.ndarray as y argument. This causes an attribute error though because numpy.ndarray does not have the sort_index function that is called in line 164 of https://github.com/blue-yonder/tsfresh/blob/main/tsfresh/feature_selection/relevance.py

Anything else we need to know?:

Environment:

I think this issue does not depend on the environment.

  • Python version:
  • Operating System:
  • tsfresh version:
  • Install method (conda, pip, source):

Facing the same error.
Details regarding my environment

  • Python version: 3.7

  • Operating System: Windows 10

  • tsfresh version: 0.19.0

  • Install method (conda, pip, source): conda