Giter VIP home page Giter VIP logo

rcam.jl's Introduction

DOI

RCAM.jl

Residual Constrained Alternating Minimization (RCAM) - A factorization-based alternating minimization scheme for large scale matrix completion in parallel computing architectures.

Installation

Using SLIM Registry (preferred method)

First switch to package manager prompt (using ']') and add SLIM registry:

	registry add https://github.com/slimgroup/SLIMregistryJL.git

Then still from package manager prompt add RCAM:

	add RCAM

Note! If the above gives you tree error, try first from terminal

	cd ~/.julia/dev
	git clone https://github.com/slimgroup/RCAM.jl.git RCAM

and then from Julia's package manager prompt:

	dev RCAM

Adding without SLIM registry

After switching to package manager prompt (using ']') type:

	add https://github.com/slimgroup/RCAM.jl.git

DCLR Framework

Dedicated Communicators for L and R Factors

The DCLR framework facilitates performant and scalable implementations of RCAM.

In short, the framework attempts to minimize implicit blocking due to messaging by:

  • Dedicating a worker to store each L and R factor, and handle all messaging associated with factor updates.
  • Distributing the data, b, across the remaining workers, who will solve for factor updates using only the local portion of b.
  • Asynchronously perform row updates on each factor.

Example

The scripts for the following examples have been included in the package in the package directory. If you don't know the package directory, in the Julia REPL run

pathof(RCAM)

All paths in the rest of this document are relative to the package directory.

Low Rank Matrix Completion with Cholesky Factorization

/examples/psimpletestChol.jl

DCLR requires at least 3 workers to itself, so we begin by starting Julia with 4 processes.

julia -p 4

Load the data and define the example function

julia> include("psimpletestChol.jl")

Run the example function and perform RCAM with DCLR

L,R = pCholtest(X)

For the reconstructed data using the L and R factors

X_rec = L*R'

Define an SNR function, and compute the SNR of the recovery

julia> snr(raw,interp) = -20log10(norm(interp-raw)/norm(raw))
snr (generic function with 1 method)

julia> snr(X,X_rec)

rcam.jl's People

Contributors

mloubout avatar yzhang3198 avatar

Watchers

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