Giter VIP home page Giter VIP logo

tensor-networks-mnist's Introduction

Tensor Networks for MNIST Classification

A short demonstration of Google's TensorNetwork library (https://arxiv.org/pdf/1905.01330) for the classification of MNIST. The goal is to employ a few different architectures for this:

  1. Matrix product states (http://papers.nips.cc/paper/6211-supervised-learning-with-tensor-networks and https://arxiv.org/pdf/1906.06329).
  2. Tree tensor networks (https://arxiv.org/abs/1901.02217 and https://arxiv.org/abs/1801.00315).
  3. Implementing architectures (1) and (2) in a quantum circuit (https://arxiv.org/pdf/1803.11537).

Motivating Question: In machine learning, tensors are used, where they are usually treated as multidimensional arrays. In physics, tensors are also used, where they are treated as multilinear maps invariant under coordinate transformations. Can we use the extensive tensor network literature developed in physics to improve machine learning? (For more information by experts, please see the references I've linked above.)

I'll demonstrate a few strategies for doing MNIST classification tasks using tensor networks. Namely, the matrix product state and tree tensor network. The MPS architecture doesn't preserve the dimensionality of the image, while the TTN does to some extent.

tensor-networks-mnist's People

Contributors

andrewyatesg avatar

Stargazers

Ettore Canonici avatar Haruki Tosa avatar ShinjiSato avatar  avatar Raghavendra Venkatraman avatar  avatar  avatar Pouria Mistani avatar Shumpei Kobayashi avatar Zhenhao Chen avatar

Watchers

James Cloos avatar  avatar paper2code - bot avatar

tensor-networks-mnist's Issues

BaseNode not found

Hello Andrew,

Thank you for this very nice example of implementing matrix product states for machine learning. I was trying to play around with your code but I realized the BaseNode that you import from tensornetwork.network_components is removed from latest tensornetwork library. Is there a workaround for this issue? Unfortunately I am new to tensornetwork and don't know what would be an equivalent to BaseNode to replace it myself...
I appreciate your help.

Best,
Pouria

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.