End-to-end time series classification via in-context learning
Project description
TIMEE: Time Series Classification via In-Context Learning
TIMEE is a pretrained transformer for time series classification. It classifies test series in a single forward pass given labeled training examples — no per-dataset training or fine-tuning required.
Installation
pip install timee-ts
Requirements: Python ≥ 3.10, PyTorch ≥ 2.0.
Quickstart
from timee import TimeeClassifier
import numpy as np
clf = TimeeClassifier.from_pretrained() # downloads from HuggingFace on first use
# X: (n_samples, n_channels, seq_len) float32
X_train = np.random.randn(20, 1, 256).astype(np.float32)
y_train = np.array([0, 1] * 10)
X_test = np.random.randn(5, 1, 256).astype(np.float32)
predictions, probabilities = clf.predict(X_train, y_train, X_test)
Labels can be any type (int, str, etc.). Datasets with more than 10 classes are
handled automatically via one-vs-rest.
API
TimeeClassifier.from_pretrained(path, device=None, use_ensemble=True)
Loads a checkpoint from a directory containing model.safetensors.
| Parameter | Default | Description |
|---|---|---|
path |
"liamsbhoo/timee" |
Local directory or HuggingFace Hub repo ID. |
device |
auto | "cuda", "cpu", or torch.device. Defaults to CUDA > MPS > CPU. |
use_ensemble |
True |
4-member preprocessing ensemble (interpolate×{256,512} × {raw, diff}). Set False for faster single-pass inference. |
clf.predict(X_train, y_train, X_test)
Returns (predictions, probabilities):
predictions:(n_test,), same type asy_trainprobabilities:(n_test, n_classes), rows sum to 1
Citation
@misc{küken2026timeeendtoendtimeseries,
title={TimEE: End-to-end Time Series Classification via In-Context Learning},
author={Jaris Küken and Shi Bin Hoo and Martin Mráz and Frank Hutter and Lennart Purucker},
year={2026},
eprint={2607.07500},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2607.07500},
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file timee_ts-0.1.0.tar.gz.
File metadata
- Download URL: timee_ts-0.1.0.tar.gz
- Upload date:
- Size: 475.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62392d1e701b681de7ee81e4231541ff6baa755535d1eb5a5d5f03a0afa643a0
|
|
| MD5 |
8b4e52a66ca689dc831a31e8f275f146
|
|
| BLAKE2b-256 |
4a4aa42cb6341f5417a337657b251d5d008dee834a9652c6a27981d2611515f2
|
Provenance
The following attestation bundles were made for timee_ts-0.1.0.tar.gz:
Publisher:
publish.yml on automl/timee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
timee_ts-0.1.0.tar.gz -
Subject digest:
62392d1e701b681de7ee81e4231541ff6baa755535d1eb5a5d5f03a0afa643a0 - Sigstore transparency entry: 2125126438
- Sigstore integration time:
-
Permalink:
automl/timee@9d0986d517e422240185127394c4959a77afbd43 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/automl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d0986d517e422240185127394c4959a77afbd43 -
Trigger Event:
release
-
Statement type:
File details
Details for the file timee_ts-0.1.0-py3-none-any.whl.
File metadata
- Download URL: timee_ts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b033ba044a03fb04421730e72cc9e29fb5c43aaf2cde5b3d1cd06829796b2c8
|
|
| MD5 |
ec31ee7f8f7d122d86f5706bce736a0f
|
|
| BLAKE2b-256 |
ad66a79b2f0ff09b6692b0c84ae1e31f48c0aabeee726b72ebaa0cc486fc3608
|
Provenance
The following attestation bundles were made for timee_ts-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on automl/timee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
timee_ts-0.1.0-py3-none-any.whl -
Subject digest:
4b033ba044a03fb04421730e72cc9e29fb5c43aaf2cde5b3d1cd06829796b2c8 - Sigstore transparency entry: 2125126500
- Sigstore integration time:
-
Permalink:
automl/timee@9d0986d517e422240185127394c4959a77afbd43 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/automl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d0986d517e422240185127394c4959a77afbd43 -
Trigger Event:
release
-
Statement type: