PathDataLoader

class dtaianomaly.data.PathDataLoader(path: str | Path, do_caching: bool = False)[source]

Data loader from disk.

A dataloader which reads data from a given path. The data loader will load the data that is stored at that path.

Parameters:
pathstr

The path at which the data set is located.

do_cachingbool, default=False

Whether to cache the loaded data or not.

Raises:
FileNotFoundError

If the given path does not point to an existing file or directory.

load() DataSet

Load the time series.

Load the dataset. If do_caching==True, the loaded will be saved in the cache if no cache is available yet, and the cached data will be returned.

Returns:
DataSet

The loaded dataset.