Skip to main content

Tucker toolbox for Riemannian optimization.

Project description

Tucker Riemopt

Python implementation of the Tucker toolbox. Package allows users to manipulate tensors in Tucker and SF-Tucker [1] formats. It also provides tools for implementing first-order optimization methods of the Riemannian optimization on the manifolds of tensors of fixed Tucker rank or fixed SF-Tucker rank. For instance, package implements a method for efficiently computing the Riemannian gradient of any smooth function via automatic differentiation.

The library is compatible with several computation frameworks, such as PyTorch and JAX, and can be easily integrated with other frameworks.

Installation

NumPy, SciPy and opt-einsum are required for installation. Additionally, you need to install your special computation framework: PyTorch or JAX.

Package may be installed using

pip install tucker_riemopt[torch/jax]

with corresponding computation framework.

Use cases

See this repository for examples of package usage.

Default computation framework is PyTorch. For using JAX you should

  1. Install JAX;
  2. Enable JAX backend using
from tucker_riemopt import set_backend
set_backend("jax")

Documentation

Detailed information may be found here.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tucker_riemopt-1.0.1.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tucker_riemopt-1.0.1-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file tucker_riemopt-1.0.1.tar.gz.

File metadata

  • Download URL: tucker_riemopt-1.0.1.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-39-generic

File hashes

Hashes for tucker_riemopt-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2d059eb030be817d9fcab666753dc214e44b13d1a605d83af1f3e6a6f04e8116
MD5 8ed5b48f416ce15f4447958fea854a48
BLAKE2b-256 cf5aed4e2e1b628d57259a17dbce424c4cf7cc8a219dfed589b13c32714dfa17

See more details on using hashes here.

File details

Details for the file tucker_riemopt-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: tucker_riemopt-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-39-generic

File hashes

Hashes for tucker_riemopt-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 816f73ced4bbe00cf9ecdd73edbb6bf8e27141ed906f28b22f6b335839111742
MD5 bdaf96d5f813db8af668d5e5e83163f3
BLAKE2b-256 d674d45f4fe3a2283952fd8a6478e1b35f4355f43813780a2977ce6cabbb26dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page