Add model card for TIC-FM
#1
by nielsr HF Staff - opened
README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: other
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# TIC-FM
|
| 6 |
+
|
| 7 |
+
This repository contains the pre-trained weights and configuration for **TIC-FM** (Time Series In-Context Foundation Model), presented in the paper [Rethinking Zero-Shot Time Series Classification: From Task-specific Classifiers to In-Context Inference](https://huggingface.co/papers/2602.00620).
|
| 8 |
+
|
| 9 |
+
- **Repository:** [GitHub - fangjuntao/TIC-FM](https://github.com/fangjuntao/TIC-FM)
|
| 10 |
+
- **Paper:** [Hugging Face Papers](https://huggingface.co/papers/2602.00620)
|
| 11 |
+
|
| 12 |
+
## Model Description
|
| 13 |
+
|
| 14 |
+
TIC-FM is an in-context learning framework that treats the labeled training set as context and predicts labels for test instances in a single forward pass without requiring parameter updates or fine-tuning. It pairs a time series encoder and a lightweight projection adapter with a split-masked latent memory Transformer.
|
| 15 |
+
|
| 16 |
+
## Quick Start & Evaluation
|
| 17 |
+
|
| 18 |
+
To set up the environment and run evaluations with this checkpoint, clone the official repository and set up the conda environment:
|
| 19 |
+
|
| 20 |
+
```bash
|
| 21 |
+
git clone https://github.com/fangjuntao/TIC-FM.git
|
| 22 |
+
cd TIC-FM
|
| 23 |
+
conda create -n TICFS python=3.9 -y
|
| 24 |
+
conda activate TICFS
|
| 25 |
+
pip install torch numpy
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
To run the evaluation script on the UCR datasets using the downloaded checkpoint:
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
python scripts/eval_TSEncoder_orion_icl_classifier_ucr_full.py \
|
| 32 |
+
--suite ucr \
|
| 33 |
+
--mode classifier_v2 \
|
| 34 |
+
--ucr_path /path/to/UCRdata/ \
|
| 35 |
+
--full_ckpt checkpoints/TSEncoder_orion_icl_full.pt \
|
| 36 |
+
--model_hparams_json checkpoints/TSEncoder_orion_icl_model_hparams.json
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
To evaluate a single dataset:
|
| 40 |
+
|
| 41 |
+
```bash
|
| 42 |
+
python scripts/eval_TSEncoder_orion_icl_classifier_ucr_full.py \
|
| 43 |
+
--suite ucr \
|
| 44 |
+
--dataset ECG200 \
|
| 45 |
+
--mode direct
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## Citation
|
| 49 |
+
|
| 50 |
+
```bibtex
|
| 51 |
+
@article{fang2026rethinking,
|
| 52 |
+
title={Rethinking Zero-Shot Time Series Classification: From Task-specific Classifiers to In-Context Inference},
|
| 53 |
+
author={Fang, Juntao and others},
|
| 54 |
+
journal={arXiv preprint arXiv:2602.00620},
|
| 55 |
+
year={2026}
|
| 56 |
+
}
|
| 57 |
+
```
|