data_root
A module for working with the data root directory.
get_data_root()
Return the path to the data root directory.
The default data root is located at ~/.rul-datasets. You can customize the
location by setting the environment variable RUL_DATASETS_DATA_ROOT or by
calling set_data_root.
A manually set data root must be an already existing directory.
Returns:
| Type | Description |
|---|---|
str
|
The data root path. |
set_data_root(data_root)
Set the data root to the specified location.
A manually set data root must be an already existing directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_root |
str
|
The new data root location. |
required |