itimeseries_visualizer
Time series visualizer interface.
This module defines the abstract source class for visualizers that render time series data with change point annotations.
- class pysatl_cpd.analysis.visualization.abstracts.itimeseries_visualizer.ITimeseriesVisualizer(backend)[source]
Bases:
IVisualizer,ABC,GenericAbstract source class for time series visualizers.
Visualizers of this type render the original time series data, optionally with ground truth change points, detected change points, and annotation of learning and skip periods.
Notes
The generic DataProviderT type is bound by DataProvider and contains the observations to be visualized. The bound ensures that any concrete implementation works with valid data providers.
- Parameters:
backend (DrawBackend | str)
- abstractmethod set_data_provider(data_provider)[source]
Set the data provider containing the time series observations.
- Parameters:
data_provider (
TypeVar(DataProviderT, bound=DataProvider[Any,TimeseriesAnnotation])) – Data provider that yields observations sequentially.- Returns:
Returns self to allow method chaining.
- Return type:
Self- Raises:
NotImplementedError – Subclasses must implement this method.