Code Monkey home page Code Monkey logo

iisignature's Introduction

The iisignature package

This package provides tools for calculating the signature and log signature of a data stream. These are summary statistics of piecewise linear paths, consisting of iterated integrals, inspired by rough path theory. See <https://github.com/bottler/phd-docs/blob/master/iisignature.pdf> for documentation, the page <https://github.com/bottler/phd-docs> for more information about the calculations, and <https://github.com/bottler/iisignature> for source code.

It is work in progress.

Python

Install with:

pip install iisignature

Don't install this package if you don't have numpy > 1.7 installed. On Windows, this package is not usable with Python 2.x. For Python 3.5, 3.6, 3.7 and 3.8 on Windows, there are precompiled wheels available, you may need to do pip install wheel to use them. On other platforms, you will need to be able to compile C++ extensions. On a Mac, you will need to have installed Xcode and the Xcode command line tools before doing the installation. The fastest, on-the-fly compiled versions of the log signature calculations are for Windows, Mac and Linux, on both 32 and 64 bit.

Sometimes there are compile errors on a Mac, if this happens try:

MACOSX_DEPLOYMENT_TARGET=10.9 pip install iisignature

Use without installing a released version

To install the current "master" development version straight from github you can type:

pip install git+git://github.com/bottler/iisignature

From a checkout of this repository, you can build the extension and run the tests using:

python setup.py test

From a checkout of this repository, you can build the extension into this directory itself using:

python setup.py build_ext --inplace

after which you can use the package in Python in this directory, use the examples in the examples directory, or add this directory to your PYTHONPATH and then use the package in Python anywhere.

Paper

A paper in TOMS <https://dl.acm.org/doi/10.1145/3371237> accompanies the library. It can also be found on arxiv at <https://arxiv.org/abs/1802.08252>. If you find iisignature useful in your research then please cite:

@article{iisignature,
title={Algorithm 1004: The iisignature Library:
Efficient Calculation of Iterated-Integral Signatures and Log Signatures},

author={Jeremy Reizenstein and Benjamin Graham}, journal={ACM Transactions on Mathematical Software (TOMS)}, year={2020}

}

Authors

  • Benjamin Graham
  • Jeremy Reizenstein

Thanks

This package includes BCH coefficients from Fernando Casas and Ander Murua. <http://arxiv.org/abs/0810.2656>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.