Skip to main content

A Python Package for Advanced Tensor Learning Methods

Project description

tensorlearn

tensorlearn is a Python library distributed on Pypi for implementing tensor learning

This is a package under development. Yet, the available methods are final and functional. The backend is Numpy.

Installation

Use the package manager pip to install tensorlearn in Python.

pip install tensorlearn

methods

Decomposition Methods

Tensor-Train Decomposition with Auto Rank Determination

Tensor-Train Decomposition with Auto Rank Determination

Tensorlearn.decomposition.tensor_train.auto_rank_tt(tensor,epsilon)

This implementation of tensor-train decomposition determines rank automatically based on a given error bound written according to Oseledets (2011). Therefore the user does not need to specify a rank. Instead the user specifies an upper error bound (epsilon) which is the frobenius norm of the error divided by the frobenius norm of the given tensor to be decomposed.

Arguments

@tensor - dimension must be at least 3.

@epsilon - Error bound = frobenius norm of the error / frobenius norm of the given tensor.

Outputs

@factors - The list includes 2D numpy arrays of factors according to TT decomposition. Length of the list equals the dimension of the given tensor to be decomposed.

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

tensorlearn-1.0.65.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

tensorlearn-1.0.65-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file tensorlearn-1.0.65.tar.gz.

File metadata

  • Download URL: tensorlearn-1.0.65.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for tensorlearn-1.0.65.tar.gz
Algorithm Hash digest
SHA256 2050dc3c7dfdf1aec8dbdc465417ceb07404b56d15cb16f58c2a5cc179da3865
MD5 dd87e64dcc1fa5edbb70ce6b379a8d7f
BLAKE2b-256 51c708ae85e647e2533219b18e13e0a124e93f988a292102e95ff6c37b1d0e49

See more details on using hashes here.

File details

Details for the file tensorlearn-1.0.65-py3-none-any.whl.

File metadata

  • Download URL: tensorlearn-1.0.65-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for tensorlearn-1.0.65-py3-none-any.whl
Algorithm Hash digest
SHA256 bdda727fd96592ea60a20f880562b80a145ab9f034b0f60dd0ab3dd80f99b84f
MD5 01b47f72562f1bad16cf3c8fe58f81f3
BLAKE2b-256 88a317a38abf5a8d3db35b63a382843c6186e5626cdbdc5d4324bf6410541ef5

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