Metadata-Version: 1.2
Name: signatory
Version: 0.1.2
Summary: High-performance signature computations in PyTorch, on both CPU and GPU, accelerated via C++ extensions, including backpropagation.
Home-page: https://github.com/patrick-kidger/signatory
Author: Patrick Kidger
Author-email: contact@kidger.site
Maintainer: Patrick Kidger
Maintainer-email: contact@kidger.site
License: Type license() to see the full license text
Description: *********
        Signatory
        *********
        High-performance signature computations in PyTorch, on both CPU and GPU, accelerated via C++ extensions, including backpropagation.
        
        What is the signature transform?
        --------------------------------
        If you're reading this documentation 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 all the fuss is about...
        
        The 'signature transform' is a transformation that does a particularly good job extracting features from streams of data. Check out `this <https://arxiv.org/abs/1603.03788>`__ for a primer on its use in machine learning, as a feature transformation. Then have a look `here <https://arxiv.org/abs/1905.08494>`__ for a more in-depth look at building it into neural network models, as an arbitrary layer anywhere within a neural network. It's pretty cool.
        
        In brief: the signature of a path determines the path essentially uniquely, and does so in an efficient, computable way.  Furthermore, the signature is rich enough that every continuous function of the path may be approximated arbitrarily well by a linear function of its signature; it is what we call a ‘universal nonlinearity’. Now for various reasons this is a mathematical idealisation not borne out in practice (which is why we put them in a neural network and don't just use a simple linear model), but they still work very well!
        
        Installation
        ------------
        Available for Python 2.7, Python 3.5, Python 3.6, Python 3.7.
        
        Requires `PyTorch <http://pytorch.org/>`__. Tested with PyTorch version 1.0.1, but will probably work with other versions as well.
        
        Install via ``pip``:
        
        .. code-block:: bash
        
            pip install signatory
        
        
        Alternatively install via ``git``:
        
        .. code-block:: bash
        
            git clone https://github.com/patrick-kidger/signatory.git
            cd signatory
            pip install .
        
        Documentation
        -------------
        The documentation is available `here <https://signatory.readthedocs.io>`__.
        
        FAQ
        ---
        * What's the difference between Signatory_ and iisignature_?
        
        The main difference is that iisignature is NumPy-based and CPU-only. Meanwhile Signatory is for PyTorch and may also run on the GPU, as it is targeted towards machine learning applications. The two packages also use different embeddings from streams of data into path space -- see the next question.
        
        * Why is the signature of a path different when I use the iisignature_ package?
        
        The signature transform is defined on paths; given a stream of data we must decide how to embed it into a path. iisignature uses a piecewise linear embedding, whilst Signatory uses a piecewise constant embedding. From a data science point of view, both are equally arbitrary -- so as long as you pick one and stick with it then it shouldn't matter.
        
        This embedding was selected for Signatory because signature calculations for this embedding may be done much more rapidly, with provably fewer scalar multiplications. Empirically it runs 3-4 times faster on the CPU than iisignature on reasonably sized batches. (Signatory is optimised for batched operations, using batches to be `cache-friendly <https://stackoverflow.com/questions/16699247/what-is-a-cache-friendly-code>`__.)
        
        .. _iisignature: https://github.com/bottler/iisignature
        .. _Signatory: https://github.com/patrick-kidger/signatory
        
        Citation
        --------
        If you found this library useful in your research, please consider citing
        
        .. code-block:: bibtex
        
            @article{deepsignatures,
                title={{Deep Signatures}},
                author={{Bonnier, Patric and Kidger, Patrick and Perez Arribas, Imanol and Salvi, Cristopher and Lyons, Terry}},
                journal={arXiv:1905.08494},
                year={2019}
            }
        
        which this project was a spin-off from.
        
        Acknowledgements
        ----------------
        The Python bindings for the C++ code were written with the aid of `pybind11 <https://github.com/pybind/pybind11>`__.
        
        For NumPy-based CPU-only signature calculations, you may also be interested in the `iisignature <https://github.com/bottler/iisignature>`__ package, which was a source of inspiration for Signatory.
Keywords: signature
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Scientific/Engineering :: Mathematics
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4
