Fast path signatures
Project description
chen-signatures
Fast rough path signatures for Python, powered by a high-performance Julia backend.
chen-signatures brings the speed and numerical stability of Julia’s ChenSignatures.jl to Python via juliacall, offering a modern, actively maintained alternative to existing signature libraries.
It has been benchmarked against both iisignature and pysiglib, showing:
- Comparable performance to pysiglib, a modern C++/Python implementation
- Consistently faster performance than iisignature across typical configurations
Full benchmark notebooks and articles will be published separately.
Why chen-signatures?
| Feature | chen-signatures | iisignature | pysiglib |
|---|---|---|---|
| Speed | 🚀 Optimized Julia backend | ⚠️ Older implementation | 🔄 Similar to chen-signatures |
| Python ≥ 3.10 | ✅ Yes | ❌ No (≤3.9 only) | ✅ Yes |
| Python 3.13 | ✅ Yes | ❌ No | ✅ Yes |
| Log-signature | ✅ Yes | ⚠️ Limited | ❌ Not supported |
| Autodiff | ✅ Yes (ForwardDiff) | ❌ No | ❌ No |
| Maintenance | ✅ Active | ⚠️ Unmaintained | ✅ Active |
Installation
pip install chen-signatures
On first import, juliacall will automatically install a lightweight Julia runtime.
This happens once per environment.
Quick Start
import chen
import numpy as np
path = np.random.randn(1000, 10)
signature = chen.sig(path, m=5)
logsignature = chen.logsig(path, m=5)
API
sig(path, m)
Compute a truncated signature up to level m.
sig = chen.sig(path, m=3)
logsig(path, m)
Compute log-signatures using the Lyndon basis.
logsig = chen.logsig(path, m=5)
Supported Types
float32,float64- Any NumPy array-like input
- Contiguous arrays recommended (handled automatically)
Use Cases
- Financial time series
- Sensor data and IoT
- Neural CDEs / differential ML
- Representation learning
- Anomaly detection
Limitations
- First import is slow (Julia installation)
- CPU-only execution
- Uses more memory than minimal C++ libraries
Requirements
- Python ≥ 3.9
- NumPy ≥ 1.20
- ~500MB disk space for Julia runtime
Citation
@software{chen_signatures,
author = {Combi, Alessandro},
title = {chen-signatures: Fast rough path signatures for Python},
year = {2025},
url = {https://github.com/aleCombi/ChenSignatures.jl}
}
Contributing
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 chen_signatures-0.1.9.tar.gz.
File metadata
- Download URL: chen_signatures-0.1.9.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
354a9383f42f4e0b16404139fd8816e3acf29c23036bb0ab53fc2b4a21981b75
|
|
| MD5 |
9ff95564a10511d3a8ccc273a2c508f5
|
|
| BLAKE2b-256 |
695f19a5c2c33ca9ef662f9fae569a97cf26e4336664f13d9861bde02f3ba15e
|
File details
Details for the file chen_signatures-0.1.9-py3-none-any.whl.
File metadata
- Download URL: chen_signatures-0.1.9-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04e048590ac4309013ed6e756b114f0e57052d552c5228e8b28e1d4dd30a9de3
|
|
| MD5 |
6e475b850140a85c3a47360324bd5ce3
|
|
| BLAKE2b-256 |
af4e009ad5fa02c2fb6a4b0834121eadffbc0083629f7ea977237db086c2853d
|