https://github.com/tensorly/tensorly
Revision 3cfd3e489b9d5f20027663c3fddbd7759c5831f4 authored by Aaron Meurer on 12 December 2018, 22:51:40 UTC, committed by Aaron Meurer on 12 December 2018, 22:51:40 UTC
This required adding a mask flag to kruskal_to_tensor() and kr() so that the mask could be absorbed into the calculation in a sparse friendly way. In order to be sparse friendly, the mask should be a sparse array with a fill value of 1 (True). In other words, the number of missing values should itself be sparse. The generic kr() algorithm was rewritten to use a generic outer product, and kruskal_to_tensor() now uses sum instead of dot (the NumPy kr() just multiplies the mask).
1 parent f0ef0a1
Tip revision: 3cfd3e489b9d5f20027663c3fddbd7759c5831f4 authored by Aaron Meurer on 12 December 2018, 22:51:40 UTC
Make the parafac mask support sparse friendly
Make the parafac mask support sparse friendly
Tip revision: 3cfd3e4
File | Mode | Size |
---|---|---|
conda | ||
doc | ||
examples | ||
tensorly | ||
.coveragerc | -rw-r--r-- | 72 bytes |
.gitignore | -rw-r--r-- | 905 bytes |
.travis.yml | -rw-r--r-- | 1.6 KB |
AUTHORS.rst | -rw-r--r-- | 272 bytes |
CHANGELOG.md | -rw-r--r-- | 229 bytes |
LICENSE.txt | -rw-r--r-- | 1.5 KB |
Makefile | -rw-r--r-- | 370 bytes |
README.rst | -rw-r--r-- | 6.1 KB |
deploy_docs.sh | -rw-r--r-- | 930 bytes |
requirements.txt | -rw-r--r-- | 35 bytes |
setup.cfg | -rw-r--r-- | 508 bytes |
setup.py | -rwxr-xr-x | 1.9 KB |
Computing file changes ...