dir_dataset
DirDataset
¶
Bases: InMemoryDataset
A dataset which reads files from a folder hierarchy like root/data.file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
root_dir |
str
|
The path to the directory containing data. |
required |
data_key |
str
|
What key to assign to the data values in the data dictionary. |
'x'
|
file_extension |
Optional[str]
|
If provided then only files ending with the file_extension will be included. |
None
|
recursive_search |
bool
|
Whether to search within subdirectories for files. |
True
|