This is the computational appendix for the following paper:

Ding Liu, Shi-Ju Ran, Peter Wittek, Cheng Peng, Raul Blázquez García, Gang Su, Maciej Lewenstein. Machine Learning by Two-Dimensional Hierarchical Tensor Networks: A Quantum Information Theoretic Perspective on Deep Architectures. arXiv:1710.04833, 2017.

The code uses tncontract for tensor contractions. Other dependencies are SciPy, Matplotlib, and Scikit-learn.

The data files can be downloaded from here.

Files