experiment_runner.download_datasets =================================== .. py:module:: experiment_runner.download_datasets .. autoapi-nested-parse:: 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: 1. Checks which datasets are already in the cache (fast no-op if all present). 2. Downloads the full bulk archive zip in one shot when the wildcard is active. 3. Extracts and flattens the zip so each dataset lands at ``{cache_dir}/{name}/{name}_TRAIN.ts`` — the path sktime expects via its ``extract_path`` parameter. 4. 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 ---------- .. autoapisummary:: experiment_runner.download_datasets.logger experiment_runner.download_datasets.UCR_BULK_URL experiment_runner.download_datasets.UEA_BULK_URL Functions --------- .. autoapisummary:: experiment_runner.download_datasets.ensure_datasets_cached Module Contents --------------- .. py:data:: logger .. py:data:: UCR_BULK_URL :value: 'http://www.timeseriesclassification.com/aeon-toolkit/Archives/Univariate2018_ts.zip' .. py:data:: UEA_BULK_URL :value: 'http://www.timeseriesclassification.com/aeon-toolkit/Archives/Multivariate2018_ts.zip' .. py:function:: 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 ``.ts`` files cached. :param cache_dir: Root directory where ``{name}/{name}_TRAIN.ts`` files are stored. :param dataset_names: Fully-expanded list of dataset names (after UCR/UEA wildcard resolution). :param uses_ucr_wildcard: ``True`` when the original config used ``dataset: "UCR"``. Triggers bulk archive download instead of individual per-dataset downloads. :param uses_uea_wildcard: Same for ``dataset: "UEA"``.