Coder Social home page Coder Social logo

dawonahn / p-tucker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sejoonoh/p-tucker

0.0 0.0 0.0 1.02 MB

Scalable Tucker Factorization for Sparse Tensors - Algorithms and Discoveries

Home Page: https://ieeexplore.ieee.org/document/8509325

License: Apache License 2.0

Makefile 0.01% C++ 99.04% CMake 0.01% C 0.94%

p-tucker's Introduction

P-Tucker

Overview

Scalable Tucker Factorization for Sparse Tensors - Algorithms and Discoveries (ICDE 2018)
Sejoon Oh, Namyong Park, Lee Sael, and U Kang

[Paper] [Supplementary Material]

Please refer to the following website for the details of P-Tucker (https://datalab.snu.ac.kr/ptucker/)

Usage

P-Tucker requires OpenMP 2.0 or above version! (if you use gcc/g++ compiler, it is installed by default, for macOS, see https://iscinumpy.gitlab.io/post/omp-on-high-sierra/ and replace Makefile with Makefile_mac)

"make" command will create a single executable file, which is "P-Tucker".

The executable file takes five arguments, which are the path of input tensor file, path of directory for storing results, tensor order, tensor rank, and number of threads. The arguments MUST BE valid and in the above order.

	ex) ./P-Tucker input.txt result/ 3 10 20

If you put the command properly, P-Tucker will write all values of factor matrices and a core tensor in the result directory set by an argument. (PLEASE MAKE SURE THAT YOU HAVE A WRITE PERMISSION TO THE RESULT DIRECTORY!).

	ex) result/FACTOR1, result/CORETENSOR

We note that input and output tensors are based on base-0 indexing, and tab- or space-separated input tensors are allowed.

Demo

To run the demo, please follow the following procedure. Sample tensor is created as 100x100x100 size with 1,000 observable entries.

1. Type "make demo"
2. Check "sample/result" directory for the demo factorization results

Orthogonalization of Factor Matrices

Orthogonalization of factor matrices and updating a core tensor are included in the source code (disabled by default). Please uncomment them (lines 471-472) before you run the code (if you wish to perform orthogonalization).

P-Tucker-Cache and P-Tucker-APPROX

If you want to run P-Tucker-Cache or P-Tucker-APPROX, please contact the main author (Sejoon Oh, [email protected]).

Tested Environment

We tested our proposed method P-Tucker in a Linux Ubuntu 16.04.3 LTS machine equipped with 20 Intel Xeon E5-2630 v4 2.2GHz CPUs and 512GB RAM.

p-tucker's People

Contributors

sejoonoh avatar dawonahn 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.