You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scikit-tensor is a Python module for multilinear algebra and tensor
factorizations. Currently, scikit-tensor supports basic tensor operations
such as folding/unfolding, tensor-matrix and tensor-vector products as
well as the following tensor factorizations:
Canonical / Parafac Decomposition
Tucker Decomposition
RESCAL
DEDICOM
INDSCAL
Moreover, all operations support dense and tensors.
Dependencies
The required dependencies to build the software are Numpy >= 1.3, SciPy >= 0.7.
importloggingfromscipy.io.matlabimportloadmatfromsktensorimportdtensor, cp_als# Set logging to DEBUG to see CP-ALS informationlogging.basicConfig(level=logging.DEBUG)
# Load Matlab data and convert it to dense tensor formatmat=loadmat('../data/sensory-bread/brod.mat')
T=dtensor(mat['X'])
# Decompose tensor using CP-ALSP, fit, itr, exectimes=cp_als(T, 3, init='random')
Install
This package uses distutils, which is the default way of installing python modules. The use of virtual environments is recommended.
scikit-tensor is still an extremely young project, and I'm happy for any contributions (patches, code, bugfixes, documentation, whatever) to get it to a stable and useful point. Feel free to get in touch with me via email (mnick at AT mit DOT edu) or directly via github.
Development is synchronized via git. To clone this repository, run
Matlab Tensor Toolbox:
A Matlab toolbox for tensor factorizations and tensor operations freely available for research and evaluation.
Matlab Tensorlab
A Matlab toolbox for tensor factorizations, complex optimization, and tensor optimization freely available for
non-commercial academic research.
About
Python library for multilinear algebra and tensor factorizations