All Projects → tnbar → tednet

tnbar / tednet

Licence: MIT license
TedNet: A Pytorch Toolkit for Tensor Decomposition Networks

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to tednet

deep-ctr
No description or website provided.
Stars: ✭ 92 (+104.44%)
Mutual labels:  tensor-decomposition
scikit tt
Tensor Train Toolbox
Stars: ✭ 52 (+15.56%)
Mutual labels:  tensor-decomposition
ostd
Online Stochastic Tensor Decomposition for Background Subtraction in Multispectral Video Sequences
Stars: ✭ 21 (-53.33%)
Mutual labels:  tensor-decomposition
torchprune
A research library for pytorch-based neural network pruning, compression, and more.
Stars: ✭ 133 (+195.56%)
Mutual labels:  tensor-decomposition
OLSTEC
OnLine Low-rank Subspace tracking by TEnsor CP Decomposition in Matlab: Version 1.0.1
Stars: ✭ 30 (-33.33%)
Mutual labels:  tensor-decomposition
caffe-simnets
The SimNets Architecture's Implementation in Caffe
Stars: ✭ 13 (-71.11%)
Mutual labels:  tensor-decomposition
NTFk.jl
Unsupervised Machine Learning: Nonnegative Tensor Factorization + k-means clustering
Stars: ✭ 36 (-20%)
Mutual labels:  tensor-decomposition
tthresh
C++ compressor for multidimensional grid data using the Tucker decomposition
Stars: ✭ 35 (-22.22%)
Mutual labels:  tensor-decomposition

Python package Documentation Status PyPI - License PyPI

TedNet: A Pytorch Toolkit for Tensor Decomposition Networks

tednet is a toolkit for tensor decomposition networks. Tensor decomposition networks are neural networks whose layers are decomposed by tensor decomposition, including CANDECOMP/PARAFAC, Tucker2, Tensor Train, Tensor Ring and so on. For a convenience to do research on it, tednet provides excellent tools to deal with tensorial networks.

Now, tednet is easy to be installed by pip:

pip install tednet

More information could be found in Document.


Quick Start

Operation

There are some operations supported in tednet, and it is convinient to use them. First, import it:

import tednet as tdt

Create matrix whose diagonal elements are ones:

diag_matrix = tdt.eye(5, 5)

A way to transfer the Pytorch tensor into numpy array:

diag_matrix = tdt.to_numpy(diag_matrix)

Similarly, the numpy array can be taken into Pytorch tensor by:

diag_matrix = tdt.to_tensor(diag_matrix)
Tensor Decomposition Networks (Tensor Ring for Sample)

To use tensor ring decomposition models, simply calling the tensor ring module is enough.

import tednet.tnn.tensor_ring as tr

# Define a TR-LeNet5
model = tr.TRLeNet5(10, [6, 6, 6, 6])

Citing

If you use tednet in an academic work, we will appreciate you for citing our paper with:

@article{DBLP:journals/ijon/PanWX22,
  author    = {Yu Pan and
               Maolin Wang and
               Zenglin Xu},
  title     = {TedNet: {A} Pytorch toolkit for tensor decomposition networks},
  journal   = {Neurocomputing},
  volume    = {469},
  pages     = {234--238},
  year      = {2022}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].