from_directory
- dtaianomaly.data.from_directory(path: str | Path, base_type: type[PathDataLoader], **kwargs) list[PathDataLoader][source]
Load all PathDataLoaders in a given path.
Construct a PathDataLoader instance for every file in the given directory
- Parameters:
- pathstr or Path
Path to the directory in question.
- base_typePathDataLoader object
Class object of the data loader, called for constructing each data loader instance.
- **kwargs
Additional arguments to be passed to the dataloader.
- Returns:
- List[PathDataLoader]
A list of the initialized data loaders, one for each data set in the given directory.
- Raises:
- FileNotFoundError
If directory cannot be found