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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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