Giter VIP home page Giter VIP logo

tns's Introduction

Sampling-Based Decomposition Algorithms for Arbitrary Tensor Networks

This repo contains code used in the experiment in the paper

O. A. Malik, V. Bharadwaj, R. Murray. Sampling-Based Decomposition Algorithms for Arbitrary Tensor Networks. Preprint arXiv:2210.03828, 2022.

A preprint is available on arXiv.

Referencing this code

If you use this code in any of your own work, please reference our paper:

@misc{malik2022TNS,
  doi = {10.48550/ARXIV.2210.03828},
  url = {https://arxiv.org/abs/2210.03828},
  author = {Malik, Osman Asif and Bharadwaj, Vivek and Murray, Riley},
  title = {Sampling-Based Decomposition Algorithms for Arbitrary Tensor Networks},
  publisher = {arXiv},
  year = {2022},
}

Some further details on the code

  • experiment_TNS.m: This script runs the feature extraction experiment in our paper. It is an adaption of the script experiment_3.m in this repo.
  • draw_samples_TNS_CP.m: This function draws the samples in the tensor network (TN) matrices that arise in CP decomposition. It is an adaption of the function draw_samples_CP.m in this repo.
  • TNS_CP.m: This function computes the CP decomposition using the TN sampling approach we propose in the paper. It leverages the function draw_samples_TNS_CP.m above to do the actual sampling of the least squares problems. It is an adaption of the script cp_als_es.m in this repo.
  • draw_samples_TNS_TR.m: This function draws the samples in the TN matrices that arise in tensor ring decomposition. It is an adaption of the function draw_samples_TR.m in this repo.
  • TNS_TR.m: This function computes the tensor ring decomposition using the TN sampling approach we propose in the paper. It leverages the function draw_samples_TNS_TR.m above to do the actual sampling of the least squares problems. It is an adaption of the script tr_als_es.m in this repo.

Requirements

The code in this repo is reliant on code from the following two repositories:

Before attempting to run the code in this repo, please ensure that both of the repos listed above are downloaded and made available in Matlab, e.g., via the addpath command. Also, ensure that all dependencies and requirements for those to repos are installed properly.

Author contact information

Please feel free to contact me at any time if you have any questions or would like to provide feedback on this code or on the paper. I can be reached at oamalik (at) lbl (dot) gov.

tns's People

Stargazers

 avatar  avatar  avatar

Watchers

 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.