teneva


Nameteneva JSON
Version 0.14.8 PyPI version JSON
download
home_pagehttps://github.com/AndreiChertkov/teneva
SummaryCompact implementation of basic operations in the tensor-train (TT) format, including TT-SVD, TT-ALS, TT-ANOVA, TT-CROSS, TT-truncate for approximation of multidimensional arrays and multivariate functions
upload_time2023-10-17 08:26:02
maintainer
docs_urlNone
authorAndrei Chertkov
requires_python>=3.8
licenseMIT
keywords low-rank representation tensor train format tt-decomposition cross approximation als anova
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # teneva


## Description

This python package, named **teneva** (**ten**sor **eva**luation), provides a very compact implementation of basic operations in the tensor-train (TT) format, including TT-SVD, TT-ALS, TT-ANOVA, TT-cross, TT-truncate, Chebyshev interpolation, "add", "mul", "norm", "mean", "sample", etc. Our approach can be used for approximation of multidimensional arrays and multivariate functions, as well as for efficient implementation of various operations of linear algebra in the low rank TT-format. The program code is organized within a functional paradigm and it is very easy to learn and use. Each function has detailed documentation and various usage demos.


## Installation

> Current version "0.14.8".

The package can be installed via pip: `pip install teneva` (it requires the [Python](https://www.python.org) programming language of the version 3.8 or 3.9). It can be also downloaded from the repository [teneva](https://github.com/AndreiChertkov/teneva) and installed by `python setup.py install` command from the root folder of the project.


## Documentation, examples and tests

- See detailed [online documentation](https://teneva.readthedocs.io) for a description of each function and various numerical examples for each function.

- See the jupyter notebooks in the `demo` folder of the repository [teneva](https://github.com/AndreiChertkov/teneva) with brief description and demonstration of the capabilities of each function from the `teneva` package, including the basic examples of using the TT-ALS, TT-ANOVA and TT-cross for approximation of the multivariable functions. Note that all examples from this folder are also presented in the online documentation.

- See [changelog.md](https://github.com/AndreiChertkov/teneva/blob/master/changelog.md) file with a description of the changes made for new package versions and [workflow.md](https://github.com/AndreiChertkov/teneva/blob/master/workflow.md) file with a description of the rules we use to work on the code (draft!).

- Run all the tests (based on the `unittest` framework) from the root of the repository [teneva](https://github.com/AndreiChertkov/teneva) as `python test/test.py` (draft!).


## Useful links

- The github repository [teneva_jax](https://github.com/AndreiChertkov/teneva_jax) with the fast `jax` version of the `teneva` code.

- The github repository [teneva_bm](https://github.com/AndreiChertkov/teneva_bm) with benchmarks library for testing multidimensional approximation and optimization methods.

- The github repository [teneva_opti](https://github.com/AndreiChertkov/teneva_opti) with wrapper for various optimizers adapted to work with benchmarks from `teneva_bm`.

- The github repository [ttopt](https://github.com/AndreiChertkov/ttopt) with the gradient-free optimization method `TTOpt` for multivariable functions based on the TT-format and maximal-volume principle (see also [NeurIPS-2022 paper](https://proceedings.neurips.cc/paper_files/paper/2022/hash/a730abbcd6cf4a371ca9545db5922442-Abstract-Conference.html)).

- The github repository [PROTES](https://github.com/anabatsh/PROTES) with the optimization method `PROTES` (PRobability Optimizer with TEnsor Sampling) for derivative-free optimization of the multidimensional arrays and discretized multivariate functions based on the TT-format (see also [arxiv paper](https://arxiv.org/pdf/2301.12162.pdf)).

- The github repository [Constructive-TT](https://github.com/G-Ryzhakov/Constructive-TT) with the method for constructive TT-representation of the tensors given as index interaction functions (see also [ICLR-2023 paper](https://openreview.net/forum?id=yLzLfM-Esnu)).

- Paper [Tensor train decomposition](https://sites.pitt.edu/~sjh95/related_papers/tensor_train_decomposition.pdf), in which the TT-decomposition is presented and the main its properties are described.

- Dissertation work [Computational tensor methods and their applications](https://disk.yandex.ru/i/JEQXcFQlGuntyQ) (in Russian only), in which the TT-decomposition is proposed and all its properties are described in detail.

- Dissertation work [Tensor methods for multidimensional differential equations](https://www.hse.ru/sci/diss/847453144) (in Russian only), which presents various new algorithms in the TT-format for problems of multidimensional approximation, optimization and solution of differential equations.


## Authors

- [Andrei Chertkov](https://github.com/AndreiChertkov)
- [Gleb Ryzhakov](https://github.com/G-Ryzhakov)
- [Ivan Oseledets](https://github.com/oseledets)

> ✭__🚂  The stars that you give to **teneva**, motivate us to develop faster and add new interesting features to the code 😃


## Citation

If you find our approach and/or code useful in your research, please consider citing:

```bibtex
@article{chertkov2023black,
    author    = {Chertkov, Andrei and Ryzhakov, Gleb and Oseledets, Ivan},
    year      = {2023},
    title     = {Black box approximation in the tensor train format initialized by {ANOVA} decomposition},
    journal   = {SIAM Journal on Scientific Computing},
    volume    = {45},
    number    = {4},
    pages     = {A2101-A2118},
    doi       = {10.1137/22M1514088},
    url       = {https://arxiv.org/pdf/2208.03380.pdf}
}
```

```bibtex
@article{chertkov2022optimization,
    author    = {Chertkov, Andrei and Ryzhakov, Gleb and Novikov, Georgii and Oseledets, Ivan},
    year      = {2022},
    title     = {Optimization of functions given in the tensor train format},
    journal   = {arXiv preprint arXiv:2209.14808},
    doi       = {10.48550/ARXIV.2209.14808},
    url       = {https://arxiv.org/pdf/2209.14808.pdf}
}
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/AndreiChertkov/teneva",
    "name": "teneva",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "low-rank representation tensor train format TT-decomposition cross approximation als anova",
    "author": "Andrei Chertkov",
    "author_email": "andre.chertkov@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a3/60/cb2079efd450421f25029d8345dcc7a19bbfd3308fdf7d50d9fc6c618ba7/teneva-0.14.8.tar.gz",
    "platform": null,
    "description": "# teneva\n\n\n## Description\n\nThis python package, named **teneva** (**ten**sor **eva**luation), provides a very compact implementation of basic operations in the tensor-train (TT) format, including TT-SVD, TT-ALS, TT-ANOVA, TT-cross, TT-truncate, Chebyshev interpolation, \"add\", \"mul\", \"norm\", \"mean\", \"sample\", etc. Our approach can be used for approximation of multidimensional arrays and multivariate functions, as well as for efficient implementation of various operations of linear algebra in the low rank TT-format. The program code is organized within a functional paradigm and it is very easy to learn and use. Each function has detailed documentation and various usage demos.\n\n\n## Installation\n\n> Current version \"0.14.8\".\n\nThe package can be installed via pip: `pip install teneva` (it requires the [Python](https://www.python.org) programming language of the version 3.8 or 3.9). It can be also downloaded from the repository [teneva](https://github.com/AndreiChertkov/teneva) and installed by `python setup.py install` command from the root folder of the project.\n\n\n## Documentation, examples and tests\n\n- See detailed [online documentation](https://teneva.readthedocs.io) for a description of each function and various numerical examples for each function.\n\n- See the jupyter notebooks in the `demo` folder of the repository [teneva](https://github.com/AndreiChertkov/teneva) with brief description and demonstration of the capabilities of each function from the `teneva` package, including the basic examples of using the TT-ALS, TT-ANOVA and TT-cross for approximation of the multivariable functions. Note that all examples from this folder are also presented in the online documentation.\n\n- See [changelog.md](https://github.com/AndreiChertkov/teneva/blob/master/changelog.md) file with a description of the changes made for new package versions and [workflow.md](https://github.com/AndreiChertkov/teneva/blob/master/workflow.md) file with a description of the rules we use to work on the code (draft!).\n\n- Run all the tests (based on the `unittest` framework) from the root of the repository [teneva](https://github.com/AndreiChertkov/teneva) as `python test/test.py` (draft!).\n\n\n## Useful links\n\n- The github repository [teneva_jax](https://github.com/AndreiChertkov/teneva_jax) with the fast `jax` version of the `teneva` code.\n\n- The github repository [teneva_bm](https://github.com/AndreiChertkov/teneva_bm) with benchmarks library for testing multidimensional approximation and optimization methods.\n\n- The github repository [teneva_opti](https://github.com/AndreiChertkov/teneva_opti) with wrapper for various optimizers adapted to work with benchmarks from `teneva_bm`.\n\n- The github repository [ttopt](https://github.com/AndreiChertkov/ttopt) with the gradient-free optimization method `TTOpt` for multivariable functions based on the TT-format and maximal-volume principle (see also [NeurIPS-2022 paper](https://proceedings.neurips.cc/paper_files/paper/2022/hash/a730abbcd6cf4a371ca9545db5922442-Abstract-Conference.html)).\n\n- The github repository [PROTES](https://github.com/anabatsh/PROTES) with the optimization method `PROTES` (PRobability Optimizer with TEnsor Sampling) for derivative-free optimization of the multidimensional arrays and discretized multivariate functions based on the TT-format (see also [arxiv paper](https://arxiv.org/pdf/2301.12162.pdf)).\n\n- The github repository [Constructive-TT](https://github.com/G-Ryzhakov/Constructive-TT) with the method for constructive TT-representation of the tensors given as index interaction functions (see also [ICLR-2023 paper](https://openreview.net/forum?id=yLzLfM-Esnu)).\n\n- Paper [Tensor train decomposition](https://sites.pitt.edu/~sjh95/related_papers/tensor_train_decomposition.pdf), in which the TT-decomposition is presented and the main its properties are described.\n\n- Dissertation work [Computational tensor methods and their applications](https://disk.yandex.ru/i/JEQXcFQlGuntyQ) (in Russian only), in which the TT-decomposition is proposed and all its properties are described in detail.\n\n- Dissertation work [Tensor methods for multidimensional differential equations](https://www.hse.ru/sci/diss/847453144) (in Russian only), which presents various new algorithms in the TT-format for problems of multidimensional approximation, optimization and solution of differential equations.\n\n\n## Authors\n\n- [Andrei Chertkov](https://github.com/AndreiChertkov)\n- [Gleb Ryzhakov](https://github.com/G-Ryzhakov)\n- [Ivan Oseledets](https://github.com/oseledets)\n\n> \u272d__\ud83d\ude82  The stars that you give to **teneva**, motivate us to develop faster and add new interesting features to the code \ud83d\ude03\n\n\n## Citation\n\nIf you find our approach and/or code useful in your research, please consider citing:\n\n```bibtex\n@article{chertkov2023black,\n    author    = {Chertkov, Andrei and Ryzhakov, Gleb and Oseledets, Ivan},\n    year      = {2023},\n    title     = {Black box approximation in the tensor train format initialized by {ANOVA} decomposition},\n    journal   = {SIAM Journal on Scientific Computing},\n    volume    = {45},\n    number    = {4},\n    pages     = {A2101-A2118},\n    doi       = {10.1137/22M1514088},\n    url       = {https://arxiv.org/pdf/2208.03380.pdf}\n}\n```\n\n```bibtex\n@article{chertkov2022optimization,\n    author    = {Chertkov, Andrei and Ryzhakov, Gleb and Novikov, Georgii and Oseledets, Ivan},\n    year      = {2022},\n    title     = {Optimization of functions given in the tensor train format},\n    journal   = {arXiv preprint arXiv:2209.14808},\n    doi       = {10.48550/ARXIV.2209.14808},\n    url       = {https://arxiv.org/pdf/2209.14808.pdf}\n}\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Compact implementation of basic operations in the tensor-train (TT) format, including TT-SVD, TT-ALS, TT-ANOVA, TT-CROSS, TT-truncate for approximation of multidimensional arrays and multivariate functions",
    "version": "0.14.8",
    "project_urls": {
        "Homepage": "https://github.com/AndreiChertkov/teneva",
        "Source": "https://github.com/AndreiChertkov/teneva"
    },
    "split_keywords": [
        "low-rank",
        "representation",
        "tensor",
        "train",
        "format",
        "tt-decomposition",
        "cross",
        "approximation",
        "als",
        "anova"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "55ed806f531a97efbd30522111f9c80cba8a8982c55406034c5a44eb32592a88",
                "md5": "904e9010155f3108aac848119ac8f7ce",
                "sha256": "3132acba4a482fcfcdfdfd958d012eebbf8c3256f477f4e154b5ed93ec0e7d5b"
            },
            "downloads": -1,
            "filename": "teneva-0.14.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "904e9010155f3108aac848119ac8f7ce",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 62239,
            "upload_time": "2023-10-17T08:25:59",
            "upload_time_iso_8601": "2023-10-17T08:25:59.370300Z",
            "url": "https://files.pythonhosted.org/packages/55/ed/806f531a97efbd30522111f9c80cba8a8982c55406034c5a44eb32592a88/teneva-0.14.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a360cb2079efd450421f25029d8345dcc7a19bbfd3308fdf7d50d9fc6c618ba7",
                "md5": "a9a35647d7b38f210b60e8361e3ed261",
                "sha256": "1a4c58afb0ff5d38258a0d9760c081e34e65d21812b14fd1e27ae0ea5973b021"
            },
            "downloads": -1,
            "filename": "teneva-0.14.8.tar.gz",
            "has_sig": false,
            "md5_digest": "a9a35647d7b38f210b60e8361e3ed261",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 971381,
            "upload_time": "2023-10-17T08:26:02",
            "upload_time_iso_8601": "2023-10-17T08:26:02.602302Z",
            "url": "https://files.pythonhosted.org/packages/a3/60/cb2079efd450421f25029d8345dcc7a19bbfd3308fdf7d50d9fc6c618ba7/teneva-0.14.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-17 08:26:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "AndreiChertkov",
    "github_project": "teneva",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "teneva"
}
        
Elapsed time: 0.13424s