Skip to content

This repository provides code for "Time Series Domain Adaptation via Channel-Selective Representation Alignment"

Notifications You must be signed in to change notification settings

nerdslab/SSSS_TSA

Repository files navigation

Time Series Domain Adaptation via Channel-Selective Representation Alignment

This repository provides code for our TMLR manuscript Time Series Domain Adaptation via Channel-Selective Representation Alignment.

Requirements

  • Python 3.6+
  • PyTorch 1.10.1+/ CUDA: 10.2+
  • ScikitLearn

Running code

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

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

Contact

For all questions and comments, please contact Nauman at his Github page: nahad3

About

This repository provides code for "Time Series Domain Adaptation via Channel-Selective Representation Alignment"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages