experiment_runner.utils ======================= .. py:module:: experiment_runner.utils .. autoapi-nested-parse:: Pure helpers for the experiment runner. Small, side-effect-free utilities shared by the runner entry point: archive wildcard expansion, metric-score aggregation, and the ``metrics.csv`` row and log-label formatting. Kept apart from :mod:`experiment_runner.main` so the orchestration module holds only the pipeline itself. This is the runner's own helper module and is unrelated to :mod:`xai4tsc.utils`, which serves the importable package. Attributes ---------- .. autoapisummary:: experiment_runner.utils.logger Functions --------- .. autoapisummary:: experiment_runner.utils.expand_datasets Module Contents --------------- .. py:data:: logger .. py:function:: expand_datasets(datasets: list[dict]) -> list[dict] Expand archive wildcards and resolve per-member ``overrides``. Each entry is either a concrete dataset or an archive keyword (``UCR`` / ``UEA``) that expands to all its member datasets. An entry's inline settings apply to every member it produces; an optional ``overrides`` map (``{dataset_name: {setting: value}}``) sets per-member exceptions that take precedence over the entry's inline settings. :param datasets: Raw ``data_config["datasets"]`` entries. :type datasets: list[dict] :returns: Concrete dataset entries with ``overrides`` resolved and stripped. :rtype: list[dict]