class TimeLaggedDataset

class deeptime.util.data.TimeLaggedDataset(data, data_lagged)

High-level container for time-lagged time-series data. This can be used together with pytorch data tools, i.e., data loaders and other utilities.

Parameters:
  • data ((T, n) ndarray) – The data which is wrapped into a dataset

  • data_lagged ((T, m) ndarray) – Corresponding timelagged data. Must be of same length.

Attributes

data

Instantaneous data.

data_lagged

Time-lagged data.

Methods

astype(dtype)

Sets the datatype of contained arrays and returns a new instance of TimeLaggedDataset.

setflags([write])

Set writeable flags for contained arrays.

astype(dtype)

Sets the datatype of contained arrays and returns a new instance of TimeLaggedDataset.

Parameters:

dtype – The new dtype.

Returns:

converted_ds – The dataset with converted dtype.

Return type:

TimeLaggedDataset

setflags(write=True)

Set writeable flags for contained arrays.

property data: ndarray

Instantaneous data.

property data_lagged: ndarray

Time-lagged data.