This directory contains the published code for our paper on few-shot learning approaches for time series classification.
The published code includes the following experiments:
Data augmentation experiments for time series classification.
Contrastive learning experiments using the TimesNet architecture. This is a dependency for the supervised fine-tuning experiments.
Experiments evaluating transfer learning across different datasets.
Experiments assessing the generality of learned representations across different architectures and datasets. We evaluate the ability of learned features to transfer to the same type of movements, but from different subjects.
Supervised fine-tuning experiments using TimesNet models.
Create / activate your python environment of choice, then run the following commands:
- Install the main package:
pip install -e .
- Install dependencies:
pip install -r requirements.txt
- Install local libraries:
cd libs && ./install_all.sh
- tsembedding: Main package containing datasets, models, and utilities
- libs/timeserieslibrary: Fork of Time-Series-Library with SOTA models including TimesNet
- libs/micos: Additional time series models
Each experiment directory contains its own configuration files and training scripts. See the individual README files in each experiment directory for specific instructions.