Differentiable computations of the signature and logsignature transforms, on both CPU and GPU.
Project description
Differentiable computations of the signature and logsignature transforms, on both CPU and GPU.
What are signatures?
If you’re reading this then it’s probably because you already know what the signature transform is, and are looking to use it in your project. But in case you’ve stumbled across this and are curious what this ‘signature’ thing is…
The signature transform is a transformation that takes in a stream of data (often a time series), and returns a collection of statistics about that stream of data, called the signature. This collection of statistics determines the path essentially uniquely. Importantly, the signature is rich enough that every continuous function of the input stream may be approximated arbitrarily well by a linear function of its signature; the signature transform is what we call a universal nonlinearity. If you’re doing machine learning then you probably understand why this is such a desirable property!
Check out this for a primer on the use of the signature transform in machine learning, just as a feature transformation, and this for a more in-depth look at integrating the signature transform into neural networks.
Installation
Available for Python 2.7, Python 3.5, Python 3.6, Python 3.7 and Linux, Mac, Windows.
Requires PyTorch. Tested with PyTorch version 1.2.0, but should work with all recent versions.
Install via pip install signatory. Then just import signatory inside Python.
Installation from source is also possible; please consult the documentation.
If you have any problems with installation then check the FAQ. If that doesn’t help then feel free to open an issue.
Documentation
The documentation is available here.
Citation
If you found this library useful in your research, please consider citing
@misc{signatory,
title={{Signatory: differentiable computations of the signature and logsignature transforms, on both CPU and GPU}},
author={Kidger, Patrick},
note={https://github.com/patrick-kidger/signatory},
year={2019}
}
Acknowledgements
The Python bindings for the C++ code were written with the aid of pybind11.
For NumPy-based CPU-only signature calculations, you may also be interested in the iisignature package. The notes accompanying the iisignature project greatly helped with the implementation of Signatory.
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 Distributions
Hashes for signatory-1.1.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d5d50d3ed6c93509d999e81c6ccdcc883dd6d7dd8c294c90dd72d9bde6a6327 |
|
MD5 | 3ea9093cef34b11a4366bed17665c7e0 |
|
BLAKE2b-256 | 0774510df9feba99ed97e7a05401789376578d1f45fabb584d7a5275d4e4b8db |
Hashes for signatory-1.1.3-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b6a314df830c5c34812d30d43d7087cac4c4e3d9eda1bc1e59a828ec8c42792 |
|
MD5 | 00562086e4683cebd38686803c230551 |
|
BLAKE2b-256 | 7186e92987b4194fa094e2581f04b4ccafb7f13017175381765c97f303ad351b |
Hashes for signatory-1.1.3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02e6ba29c4c6a2522816f1dff1cd3ddec5422f81544b060a91c8d581935ca15c |
|
MD5 | f3bf34d110791929b63013484e9f2444 |
|
BLAKE2b-256 | f67a3197f4c917e4a5cce448cbac08bafa050c6255405340cb86d1e1181511d1 |
Hashes for signatory-1.1.3-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eb6dcf14dbd77c1447caf6c3d2683bb8e0a52b927da897dde01c148a29f0bf3 |
|
MD5 | 5664b809713a27e8f20dcceefaedbf19 |
|
BLAKE2b-256 | f65bf203976427006c4c4dcd6b62c59ee1607fbc700e1273ca2c008980bf21aa |
Hashes for signatory-1.1.3-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fce038d3f0336fed1fe010001c13d80aef7e47ab0b4e185fb44811838b6bdff0 |
|
MD5 | d8ead84c5f396ccf45209e85ed47f32b |
|
BLAKE2b-256 | f3bf93452b2750ab8900840b56bc172b8782fb1fe1c4524ef3cbf04cafdb251c |
Hashes for signatory-1.1.3-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e1bd547c8552cb99392837dcd099352e70d54ecb8be72d4f1dadba59925fce7 |
|
MD5 | b9af6739557785b068d1730d562d5b3c |
|
BLAKE2b-256 | 3afb25cffcb14f06702e9d1d8e7a602a7249e603a524e7201c7ad2ef05028f09 |
Hashes for signatory-1.1.3-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 824d78d0bb97e51e6e479b18910b0681a5aebce85386f09bacfad4d3ab1a4a09 |
|
MD5 | 9f37ecabb6a74e08b87c14fec4c09778 |
|
BLAKE2b-256 | dd7aac0719a16e2a6b4cb8b8e77700a7980b2ca278a561da4665e1aa02dfcfe6 |