TNS
Code for our preprint paper titled "Sampling-Based Decomposition Algorithms for Arbitrary Tensor Networks"
Install / Use
/learn @OsmanMalik/TNSREADME
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 scriptexperiment_3.min 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 functiondraw_samples_CP.min this repo.TNS_CP.m: This function computes the CP decomposition using the TN sampling approach we propose in the paper. It leverages the functiondraw_samples_TNS_CP.mabove to do the actual sampling of the least squares problems. It is an adaption of the scriptcp_als_es.min 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 functiondraw_samples_TR.min 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 functiondraw_samples_TNS_TR.mabove to do the actual sampling of the least squares problems. It is an adaption of the scripttr_als_es.min this repo.
Requirements
The code in this repo is reliant on code from the following two repositories:
- https://github.com/OsmanMalik/tr-als-sampled
- https://github.com/OsmanMalik/TD-ALS-ES
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.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
