demonstration_time_series

dtaianomaly.data.demonstration_time_series() -> (<class 'numpy.ndarray'>, <class 'numpy.ndarray'>)[source]

Generate the demonstration time series.

Generate a time series for demonstration purposes. This is a noisy sine wave with one valley that is deeper than the other ones.

Returns:
x: np.ndarray of shape (nb_samples)

The raw time series data.

y: np.ndarray of shape (nb_samples)

The ground truth labels.

Examples

>>> from dtaianomaly.data import demonstration_time_series
>>> X, y = demonstration_time_series()