tslearn.utilsΒΆ

The tslearn.utils module includes various utilities.

Functions

to_time_series(ts[, remove_nans]) Transforms a time series so that it fits the format used in tslearn models.
to_time_series_dataset(dataset[, dtype]) Transforms a time series dataset so that it fits the format used in tslearn models.
ts_size(ts) Returns actual time series size.
ts_zeros(sz[, d]) Returns a time series made of zero values.
load_timeseries_txt(fname) Loads a time series dataset from disk.
save_timeseries_txt(fname, dataset[, fmt]) Writes a time series dataset to disk.