The tslearn.utils
module includes various utilities.
Generic functions
to_time_series
(ts[, remove_nans, be])
Transforms a time series so that it fits the format used in tslearn
models.
to_time_series_dataset
(dataset[, dtype, be])
Transforms a time series dataset so that it fits the format used in tslearn
models.
to_sklearn_dataset
(dataset[, dtype, return_dim])
Transforms a time series dataset so that it fits the format used in sklearn
estimators.
ts_size
(ts[, be])
Returns actual time series size.
ts_zeros
(sz[, d])
Returns a time series made of zero values.
load_time_series_txt
(fname)
Loads a time series dataset from disk.
save_time_series_txt
(fname, dataset[, fmt])
Writes a time series dataset to disk.
check_equal_size
(dataset[, be])
Check if all time series in the dataset have the same size.
check_dims
(X[, X_fit_dims, extend, ...])
Reshapes X to a 3-dimensional array of X.shape[0] univariate timeseries of length X.shape[1] if X is 2-dimensional and extend is True.
Conversion functions
The following functions are provided for the sake of interoperability between standard Python packages for time series. They allow conversion between tslearn format and other libraries’ formats.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4