This repository provides code for our TMLR manuscript Time Series Domain Adaptation via Channel-Selective Representation Alignment.
- Python 3.6+
- PyTorch 1.10.1+/ CUDA: 10.2+
- ScikitLearn
The file "main.py" is the entry point for running all code. This file takes in different arguments such as the type of method, the dataset to run on, etc.
For example, to run our method on the WISDM dataset, please use:
python main.py --da_method "SSSS_TSA" --dataset "WISDM"
To run experiments for channel corruptions on UCI-HAR dataset, please run:
python main_chnl_perturb.py --da_method "SSSS_TSA"
This code has been adapted from the Adatime benchmarking suite
Datasets should be downloaded and placed in the datasets folder. Each dataset should be placed within their own folder in the dataset folder. For example, the WISDM dataset should be placed in
datasets\WISDM
You can download datasets that we test on from the following links:
As this code is an extension of the Adatime benchmarking suite, the same instructions provided at the Adatime github page can be used to include newer datasets
For all questions and comments, please contact Nauman at his Github page: nahad3