save_merged_dataset_splits¶
- tsml_eval.utils.datasets.save_merged_dataset_splits(problem_path: str, dataset: str, label_type: str, save_path: str | None = None)[source]¶
Merge the TRAIN and TEST .ts files of a dataset and save the merged file.
Expects files to be present at
{path}/{dataset}/{dataset}_TRAIN.tsand{path}/{dataset}/{dataset}_TEST.ts.- Parameters:
- problem_pathstr
Path to the problem folder.
- datasetstr
Name of the dataset.
- label_type: str
Either
"classification"or"regression"to ensure the correct header is written.- save_pathstr, default=None
Path to save the merged dataset to. If
None, the merged dataset will be saved in the same folder as the original datasets.