get_all_subsequences

get_all_subsequences(X: ndarray, length: int, dilation: int) ndarray

Generate a view of subsequcnes from a time series given length and dilation values.

Parameters:
Xarray, shape = (n_channels, n_timepoints)

An input time series as (n_channels, n_timepoints).

lengthint

Length of the subsequences to generate.

dilationint

Dilation parameter to apply when generating the strides.

Returns:
array, shape = (n_timepoints-(length-1)*dilation, n_channels, length)

The view of the subsequences of the input time series.