| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository gives a quick tutorial on implementing Canonical Polyadic tensor decomposition in Python, including a brief introduction to Tensor decomposition. However, the main purpose of this notebook is to focus on the implementation of tensor decomposition in Python. In line with these objectives, we will implement tensor decomposition using two libraries available in Python (TensorLy and tensortools) and a simple implementation of Tensor Decomposition with Numpy (via alternating optimization). Furthermore, the result of these three approaches are compared in terms of reconstruction error and execution time.
An attempt to partially reproducing the result of this paper's figure 2.
For the complete tutorial click here, and for the extended version click here.
Of course you can simply install the dependencies and run the code in your own Python environment. But another option to run the notebook in a docker container:
git clone https://github.com/mohammadbashiri/tensor-decomposition-in-python.git
cd tensor-decomposition-in-python
docker build -t ds .
docker run -p 7890:8888 -v $(pwd):/project --name ds_container -d --rm ds
I would like to thank Annika Thierfelder for her constructive feedback on the content.
| Back | FazBrowse Home | New Git URL |