Git Product home page Git Product logo

unsupgenmodbymps's Introduction

Unsupervised Generative Modeling using Matrix Product States

There are two versions of code: Python version (MPScumulant.py) and Matlab version (in the matlab_code directory).

Python version:

Class files

  • Class MPS_c is defined in MPScumulant.py.

With a cache for left environments and right environments, it is efficient in DMRG-2.

There's a problem in numpy.linalg.svd. In Linux and OS X environments, sometimes we get numpy.linalg.linalg.LinAlgError: SVD did not converge, but don't worry, this is rare, only under particular circumstances. On the other hand, if we transfer the problematic matrix to a Windows environment (with Intel MKL), SVD can be carried out. We ascribe this problem to the numerical implementation of SVD in the libraries such as OpenBLAS and LAPACK because mathematically SVD can always be done. If you have any idea about this issue, any advice will be appreciated!

Test files

  • In ./BStest there's an easily repeated experiment, insensitive to most of the hyperparameters.

  • ./MNIST consists data and code for the 1000 images experiment, including training and reconstruction.

Matlab version:

Class file

  • Class MPS is defined in matlab_code/MPS.m. It implements the same algorithm as the Python version.

Demo file:

  • Simply run matlab_code/demo_mnist.m

Relevant e-print & Publication

Unsupervised Generative Modeling Using Matrix Product States by Zhao-Yu Han, Jun Wang, Heng Fan, Lei Wang, Pan Zhang

unsupgenmodbymps's People

Contributors

congzlwag avatar panzhang83 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.