Incorrect behavior of the tsfresh.utilities.dataframe_functions.roll_time_series
function
#1108
Labels
tsfresh.utilities.dataframe_functions.roll_time_series
function
#1108
The problem:
By default, the
tsfresh.utilities.dataframe_functions.roll_time_series
function should move the window in the direction of growth on the time scale. However, in fact, it slices windows starting from the end. The error is not so noticeable if therolling_direction
parameter is set by default. Therefore, it is worth increasing it.Here is an example:
You may notice that the window moves from the end to the beginning of the timeseries, since it is at the beginning that the unfinished window appears. Let's also pay attention to the second value in the tuple of the identifier - for example. id=(1, 5). It indicates the beginning of the window construction, and we see that the window contains the early timeseries values that should have been skipped.
In addition, the names of the parameters do not correspond well with their meaning. Obviously,
max_timeshift
should be calledwindow_size
and explicitly specify the window width (without adding +1), which also applies tomin_timeshift
. Androlling_direction
should be renamed to `shift'.The text was updated successfully, but these errors were encountered: