make_example_2d_numpy_series¶
- make_example_2d_numpy_series(n_timepoints: int = 12, n_channels: int = 1, random_state: int | None = None, axis: int = 1) ndarray[source]¶
Randomly generate 2D numpy X.
Generates data in 2D ‘np.ndarray’ format.
- Parameters:
- n_timepointsint, default=12
The number of features/series length to generate.
- n_channelsint, default=1
The number of series channels to generate.
- random_stateint or None, default=None
Seed for random number generation.
- axisint, default=1
The axis to for the series timepoints. If 1, returns the shape (n_channels, n_timepoints). If 0, returns the shape (n_timepoints, n_channels).
- Returns:
- Xnp.ndarray
Randomly generated 2D data.
Examples
>>> from aeon.testing.data_generation import make_example_2d_numpy_series >>> data = make_example_2d_numpy_series( ... n_timepoints=6, ... n_channels=2, ... random_state=0, ... axis=0, ... ) >>> print(data) [[0.5488135 0.71518937] [0.60276338 0.54488318] [0.4236548 0.64589411] [0.43758721 0.891773 ] [0.96366276 0.38344152] [0.79172504 0.52889492]]