Skip to content

number_of_maxima only returns maxima of last key in the dictionary.  #1072

Description

@siddij3

I ran kind_to_fc_parameters to extract custom parameters from the extract_features() function with a set of parameters, and in them was the following:

                "mean_n_absolute_max": [
                    {
                        "number_of_maxima": 7,
                        "number_of_maxima": 9,
                        "number_of_maxima": 11,
                        "number_of_maxima": 13,
                        "number_of_maxima": 15,
                        "number_of_maxima": 17,
                        "number_of_maxima": 19,
                        "number_of_maxima": 21,
                        "number_of_maxima": 23,
                    }
                ],

When looking at the returned columns, it only returned number_of_maxima_23 for all the timeseries columns.

Intial timeseries columns:

datetime  C_DIOXIDE  AMMONIA  H_SULFIDE  OXYGEN  TEMPERATURE

Extracted:

C_DIOXIDE-mean_n_absolute_max-number_of_maxima_23  AMMONIA-mean_n_absolute_max-number_of_maxima_23  OXYGEN-mean_n_absolute_max-number_of_maxima_23 etc. 

Environment:

  • Python version: 3.11.5
  • Operating System: Windows & Debian
  • tsfresh version: 0.20.0
  • Install method (conda, pip, source): pip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions