andrewssobral / Mtt
Licence: bsd-2-clause
MATLAB Tensor Tools
Stars: ✭ 61
Programming Languages
matlab
3953 projects
Labels
Projects that are alternatives of or similar to Mtt
Dlpack
RFC for common in-memory tensor structure and operator interface for deep learning system
Stars: ✭ 398 (+552.46%)
Mutual labels: tensor
Arraymancer
A fast, ergonomic and portable tensor library in Nim with a deep learning focus for CPU, GPU and embedded devices via OpenMP, Cuda and OpenCL backends
Stars: ✭ 793 (+1200%)
Mutual labels: tensor
Autokernel
AutoKernel 是一个简单易用,低门槛的自动算子优化工具,提高深度学习算法部署效率。
Stars: ✭ 485 (+695.08%)
Mutual labels: tensor
Diffsharp
DiffSharp: Differentiable Functional Programming
Stars: ✭ 365 (+498.36%)
Mutual labels: tensor
Lrslibrary
Low-Rank and Sparse Tools for Background Modeling and Subtraction in Videos
Stars: ✭ 625 (+924.59%)
Mutual labels: tensor
Drlkit
A High Level Python Deep Reinforcement Learning library. Great for beginners, prototyping and quickly comparing algorithms
Stars: ✭ 29 (-52.46%)
Mutual labels: tensor
Awesome Tensor Compilers
A list of awesome compiler projects and papers for tensor computation and deep learning.
Stars: ✭ 490 (+703.28%)
Mutual labels: tensor
Taco
The Tensor Algebra Compiler (taco) computes sparse tensor expressions on CPUs and GPUs
Stars: ✭ 846 (+1286.89%)
Mutual labels: tensor
Opt einsum
⚡️Optimizing einsum functions in NumPy, Tensorflow, Dask, and more with contraction order optimization.
Stars: ✭ 397 (+550.82%)
Mutual labels: tensor
Tvm
Open deep learning compiler stack for cpu, gpu and specialized accelerators
Stars: ✭ 7,494 (+12185.25%)
Mutual labels: tensor
Cloud Volume
Read and write Neuroglancer datasets programmatically.
Stars: ✭ 63 (+3.28%)
Mutual labels: tensor
Qtorch
qTorch (Quantum Tensor Contraction Handler) https://arxiv.org/abs/1709.03636 -> for quantum simulation using tensor networks
Stars: ✭ 43 (-29.51%)
Mutual labels: tensor
Imagenet Classifier Tensorflow
Image recognition and classification using Convolutional Neural Networks with TensorFlow
Stars: ✭ 13 (-78.69%)
Mutual labels: tensor
Last update: 08/09/2014
MTT
Matlab Tensor Tools is an easy-to-use library to work with tensors.
See also:
Presentation about Matrix and Tensor Tools for Computer Vision
http://www.slideshare.net/andrewssobral/matrix-and-tensor-tools-for-computer-vision
LRSLibrary: Low-Rank and Sparse Tools for Background Modeling and Subtraction in Videos
https://github.com/andrewssobral/lrslibrary
IMTSL: Incremental and Multi-feature Tensor Subspace Learning
https://github.com/andrewssobral/imtsl
Citation
If you use this code for your publications, please cite it as:
@misc{asobral2014,
author = "Sobral, Andrews",
title = "Matlab Tensor Tools",
year = "2014",
url = "https://github.com/andrewssobral/mtt/"
}
Demos
tensor_demo_operations.m - Basic operations
tensor_demo_hosvd_ihosvd.m - High-order singular value decomposition (Tucker decomposition)
tensor_demo_parafac_als.m - CP decomposition via ALS (Alternating Least-Squares)
tensor_demo_tucker_als.m - Tucker decomposition via ALS (Alternating Least-Squares)
tensor_demo_tsvd.m - t-SVD and inverse t-svd
tensor_demo_ntf.m - Non-Negative Tensor Factorization
tensor_demo_subtensors_ntf_hals.m - Low-rank approximation based Non-Negative Tensor(CP) factorization
tensor_demo_inclearn.m - Incremental tensor learning
Example of tensor operations
A = reshape(1:12,[2,2,3]);
B = reshape(1:12,[2,2,3]);
%% Basic operations
[A1,A2,A3] = tensor_matricization(A);
M22 = reshape(1:4,[2,2]);
M33 = reshape(1:9,[3,3]);
B1 = tensor_nmodeproduct(A,M22,1);
B2 = tensor_nmodeproduct(A,M22,2);
B3 = tensor_nmodeproduct(A,M33,3);
Au = tensor_unfold(A);
A_hat = tensor_fold(Au,size(A));
[A1_] = tensor_slices_frontal(A);
[A2_] = tensor_slices_lateral(A);
[A3_] = tensor_slices_horizontal(A);
[At1_] = tensor_fibers_column(A);
[At2_] = tensor_fibers_row(A);
[At3_] = tensor_fibers_tube(A);
Bt = tensor_transpose(B);
[C] = tensor_product(A,B);
%% HoSVD and iHoSVD decomposition
T = tensor(A);
[core,U] = tensor_hosvd(T);
[T_hat] = tensor_ihosvd(core,U);
%% t-SVD decomposition
[U,S,V] = tensor_t_svd(A);
[C] = tensor_product(U,S);
[A_hat] = tensor_product(C,tensor_transpose(V));
%% Tucker ALS decomposition
r = 10;
T_hat = tucker_als(T,[r r r]);
%% PARAFAC/CP ALS decomposition
T_hat = cp_als(T, r);
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].