tslearn.preprocessing
.TimeSeriesResampler¶

class
tslearn.preprocessing.
TimeSeriesResampler
(sz)[source]¶ Resampler for time series. Resample time series so that they reach the target size.
Parameters:  sz : int
Size of the output time series.
Examples
>>> TimeSeriesResampler(sz=5).fit_transform([[0, 3, 6]]) array([[[0. ], [1.5], [3. ], [4.5], [6. ]]])
Methods
fit
(self, X[, y])A dummy method such that it complies to the sklearn requirements. fit_transform
(self, X[, y])Fit to data, then transform it. transform
(self, X[, y])Fit to data, then transform it. 
fit
(self, X, y=None, **kwargs)[source]¶ A dummy method such that it complies to the sklearn requirements. Since this method is completely stateless, it just returns itself.
Parameters:  X
Ignored
Returns:  self