experiment_runner.download_datasets
Pre-download UCR/UEA dataset archives into the experiment cache.
When a config uses the UCR or UEA wildcard, ensure_datasets_cached
is called before the experiment loop. It:
Checks which datasets are already in the cache (fast no-op if all present).
Downloads the full bulk archive zip in one shot when the wildcard is active.
Extracts and flattens the zip so each dataset lands at
{cache_dir}/{name}/{name}_TRAIN.ts— the path sktime expects via itsextract_pathparameter.Falls back to individual per-dataset zips for any remaining missing datasets (or when only specific datasets, not the full wildcard, are requested).
Download errors are logged as warnings and do not abort the experiment; failures
will surface as FileNotFoundError or network errors when sktime tries to
load the missing dataset during the experiment.
Attributes
Functions
|
Ensure every dataset in dataset_names has its |
Module Contents
- experiment_runner.download_datasets.logger
- experiment_runner.download_datasets.UCR_BULK_URL = 'http://www.timeseriesclassification.com/aeon-toolkit/Archives/Univariate2018_ts.zip'
- experiment_runner.download_datasets.UEA_BULK_URL = 'http://www.timeseriesclassification.com/aeon-toolkit/Archives/Multivariate2018_ts.zip'
- experiment_runner.download_datasets.ensure_datasets_cached(cache_dir: pathlib.Path, dataset_names: list[str], uses_ucr_wildcard: bool = False, uses_uea_wildcard: bool = False) None
Ensure every dataset in dataset_names has its
.tsfiles cached.- Parameters:
cache_dir – Root directory where
{name}/{name}_TRAIN.tsfiles are stored.dataset_names – Fully-expanded list of dataset names (after UCR/UEA wildcard resolution).
uses_ucr_wildcard –
Truewhen the original config useddataset: "UCR". Triggers bulk archive download instead of individual per-dataset downloads.uses_uea_wildcard – Same for
dataset: "UEA".