copy_dataset_ts_files¶
- tsml_eval.utils.datasets.copy_dataset_ts_files(datasets: list[str] | str, source_path: str, destination_path: str)[source]¶
Copy the TRAIN and TEST .ts files of the datasets to the destination path.
Expects files to be present at {path}/{dataset}/{dataset}_TRAIN.ts and {path}/{dataset}/{dataset}_TEST.ts.
- Parameters:
- datasetslist of str or str
The names of the datasets to copy. If a list, each item is the name of a dataset. If a string, it is the path to a file containing the names of the datasets, one per line.
- source_pathstr
The path to the directory containing the datasets.
- destination_pathstr
The path to the directory where the datasets will be copied.
Examples
>>> from tsml_eval.testing.testing_utils import _TEST_DATA_PATH, _TEST_OUTPUT_PATH >>> from tsml_eval.utils.datasets import copy_dataset_ts_files >>> copy_dataset_ts_files( ... f"{_TEST_DATA_PATH}/_test_data/test_datalist.txt", ... _TEST_DATA_PATH, ... f"{_TEST_OUTPUT_PATH}/datasets/", ... )