Skip to main content

SigKAN: Signature-Weighted Kolmogorov-Arnold Networks for Time Series

SIGKAN representation

This folder includes the original code implemented for the paper of the same name.

A pypi package is available at pypi

The SigKAN is a novel layer that combines the power of path signature and Kolmogorov-Arnold Networks.

The idea behing is to use a learnable path signature that is transformed in weights to the KAN layer.

The Signature is passed through a GRKAN (Gated Residual KAN unit) that is a modified GRN where some Dense layers are replaced by KAN layers.

New in version 0.2.0:

The signature is now computed using keras_sig instead of iisignature_tensorflow_2 that is a keras implementation of the signature based on signatory and signax. Keras_sig being in pure keras3 the package is compatible and tested with all keras backend (tensorflow2, jax and torch). However, we recommend strongly to use jax as backend as it is the most efficient for this task.

The computation of the signature also profits from an optimization for GPU computation inside keras_sig.

The KAN part implementation has been inspired from efficient_kan and works similarly to it, thus not exactly like the original implementation.

The SigKAN is a keras layers and can be used as any other keras layer, for example:

import tensorflow as tf
from sigkan import SigKAN
model = Sequential([
    Input(shape=X_train.shape[1:]),
    SigKAN(100, 2, dropout = 0.), # 100 units, signature of order 2, takes an input shape (batch, sequence, features) and returns a tensor of shape (batch, sequence, 100)
    Flatten(),
    Dense(100, 'relu'),
    Dense(units=n_ahead, activation='linear')
])

A more complete example is provided in a notebook in the example folder.

The code is provided as is and is not specially maintained.

Please cite our work if you use this repo:

@article{inzirillo2024sigkan,
  title={SigKAN: Signature-Weighted Kolmogorov-Arnold Networks for Time Series},
  author={Inzirillo, Hugo and Genet, Remi},
  journal={arXiv preprint arXiv:2406.17890},
  year={2024}
}

Shield: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0

Metadata

Release files for sigkan 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sigkan 0.2.0
File Size Uploaded Provenance Actions
sigkan-0.2.0.tar.gz 3.8 kB Without provenance Details for sigkan-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sigkan 0.2.0
File Interpreter ABI Platform Actions
sigkan-0.2.0-py3-none-any.whl Python 3 none any Details for sigkan-0.2.0-py3-none-any.whl

Total release size: 7.9 kB

Release files / sigkan-0.2.0.tar.gz

Download URL sigkan-0.2.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
871b126a1f51dc07b9c4ffbc99cfb20773de55b799cefeacbda3b0586fdd83f3
BLAKE2b-256 checksum
How to use checksums
9f7a3ee9311f400a087060111dcaec08902d963bc32a9fefe3c4da2d6e403559
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.2 Linux/6.8.0-49-generic

Release files / sigkan-0.2.0-py3-none-any.whl

Download URL sigkan-0.2.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe866c387c9327b07a5e73dda614bfeda8d7118a4f5ab192d82988b194eca1b5
BLAKE2b-256 checksum
How to use checksums
235a3f3e59da7e4ffc4d5cd217e034e82526ac3f3399895cf1a5f93723bad03f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.2 Linux/6.8.0-49-generic

Security for sigkan 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page