reservoirpy.datasets.from_aeon_classification#

reservoirpy.datasets.from_aeon_classification(X: ndarray | List[ndarray])[source]#

Converts a dataset in the Aeon classification format into a ReservoirPy-compatible format.

The Aeon library provides many classical classification datasets, notably all the benchmark datasets from the https://timeseriesclassification.com website. You can also use aeon to load datasets in various fileformats.

Parameters:

X (array-like of shape (n_timeseries, n_dimensions, n_timesteps) or list of arrays of shape (n_dimensions, n_timesteps)) – Input data in the aeon dataset format for classification

Returns:

X – Input data in the ReservoirPy dataset format

Return type:

array of shape (n_timeseries, n_timesteps, n_dimensions) or list of arrays of shape (n_timesteps, n_dimensions)

Examples

>>> from aeon.datasets import load_classification
>>> X, y = load_classification("FordA")
>>> print(X.shape)
(4921, 1, 500)
>>> from reservoirpy.datasets import from_aeon_classification
>>> X_ = from_aeon_classification(X)
>>> print(X_.shape)
(4921, 500, 1)