scikit-tensor is a Python module for multilinear algebra and tensor factorizations.
Dependencies
The required dependencies to build the software are Numpy >= 1.3, SciPy >= 0.7.
Usage
Example script to decompose sensory bread data (available from http://www.models.life.ku.dk/datasets) using CP-ALS
import logging
from scipy.io.matlab import loadmat
from sktensor import dtensor, cp_als
# Set logging to DEBUG to see CP-ALS information
logging.basicConfig(level=logging.DEBUG)
# Load Matlab data and convert it to dense tensor format
mat = loadmat('../data/sensory-bread/brod.mat')
T = dtensor(mat['X'])
# Decompose tensor using CP-ALS
P, fit, itr, exectimes = cp_als(T, 3, init='random')
References
If you use scikit-tensor in your research, please cite
Maximilian Nickel. scikit-tensor Library (Version 0.1). Available Online, November 2013.
Install
This package uses distutils, which is the default way of installing python modules. To install in your home directory, use
python setup.py install --user
To install for all users on Unix/Linux
python setup.py build sudo python setup.py install
To install in development mode
python setup.py develop
Contributing & Development
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
git clone git://github.com/scikit-learn/scikit-learn.git
License
scikit-tensor is licensed under the GPLv3 http://www.gnu.org/licenses/gpl-3.0.txt
Metadata
Release files for scikit-tensor 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scikit-tensor-0.1.tar.gz | 42.0 kB | Without provenance | Details for scikit-tensor-0.1.tar.gz |
Release files / scikit-tensor-0.1.tar.gz
| Download URL | scikit-tensor-0.1.tar.gz |
|---|---|
| Size | 42.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca144fa6b57fef0cc8ae9a46d85e4301e8efb122e17f9c4472f8e2a8febd6a96
|
|
BLAKE2b-256 checksum How to use checksums |
e95e2ce76cc8f9da0517085e17cd70210ed996aeb8f972e7080d0bc89d82bbd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for scikit-tensor 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.