https://github.com/tensorly/tensorly
Revision 3b728201e21fd39860ddbd0105655e15cbdf1e7f authored by Jean Kossaifi on 30 May 2018, 16:23:50 UTC, committed by Jean Kossaifi on 30 May 2018, 16:23:50 UTC
Mainly: - sample only needed elements from the tensor rather than unfold + select - rename with better names - avoid conversion to and from numpy - add convergence test
1 parent 0202177
Tip revision: 3b728201e21fd39860ddbd0105655e15cbdf1e7f authored by Jean Kossaifi on 30 May 2018, 16:23:50 UTC
Refactored randomised_cp
Refactored randomised_cp
Tip revision: 3b72820
Makefile
# Automate testing etc
BACKEND?='numpy'
all: install test
install:
pip install -e .
test:
TENSORLY_BACKEND=$(BACKEND) pytest -v tensorly
test-all:
TENSORLY_BACKEND='mxnet' pytest -v tensorly
TENSORLY_BACKEND='numpy' pytest -v tensorly
TENSORLY_BACKEND='pytorch' pytest -v tensorly
TENSORLY_BACKEND='tensorflow' pytest -v tensorly
test-coverage:
TENSORLY_BACKEND=$(BACKEND) pytest -v --cov tensorly tensorly
Computing file changes ...