get_dataset_path#
- moocore.get_dataset_path(filename, /, *, force=False, n_retries=3, delay=1)[source]#
Return path to a dataset provided with
moocore
.Small datasets are installed together with the
moocore
package. Large datasets are downloaded from a remote repository and stored in the local cache folder. If the file already exists locally (and the SHA256 checksums match when provided), the path to the local file is returned without re-downloading.- Parameters:
filename (
str
) – Name of the dataset.force (
bool
, default:False
) – IfTrue
, always download remote datasets, even if present or their checksum does not match what is expected for this version ofmoocore
.n_retries (
int
, default:3
) – Number of retries when download errors are encountered.delay (
int
, default:1
) – Number of seconds between retries when downloading.
- Returns:
Path
– Full path to the dataset.