GithubHelp home page GithubHelp logo

jizhihang / awf-matrix-factorization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from awf/awf-matrix-factorization

0.0 2.0 0.0 477 KB

A simple implementation of low-rank matrix factorization using MATLAB's built-in Levenberg Marquardt.

MATLAB 100.00%

awf-matrix-factorization's Introduction

Matrix Factorization

A simple implementation of low-rank matrix factorization using MATLAB's built-in Levenberg Marquardt (or the simple LM from awful.codeplex.com).

Usage:

%1. Obtain M, W, e.g.

    [M,W] = load_giraffe;

%2. Choose initial estimates A0, B0

    A0 = rand(size(M,1), 6);
    B0 = rand(size(M,2), 6);

%3. Call

    opts = awf_mf_lsqnonlin('opts');
    opts.lsopts.Display = 'iter';
    [A,B] = awf_mf_lsqnonlin(W,M,A0,B0,opts);
    tic
    opts.lsopts.Display = 'none';
    [A,B] = awf_mf_lsqnonlin(W,M,A0,B0,opts);
    toc % will take about 1 minute 

%4. or, with prior and/or Gauge fixing

	opts.regularizer_lambda = 1e-5;
	opts.gauge_fix_weight = 1e-5;
	[A,B] = awf_mf_lsqnonlin(W,M,A0,B0,opts);

%5. or, with au_levmarq

    opts = awf_mf_lsqnonlin('opts');
	opts.Algorithm = 'awf';
    tic
	[A,B] = awf_mf_lsqnonlin(W,M,A0,B0,opts);
    toc

Sources

damped_wiberg.zip from [http://www.vision.is.tohoku.ac.jp/us/download] md5 hash 6E72535A32F06045C9C7EC626A38D543

Data from [http://www.robots.ox.ac.uk/~amb]

awf-matrix-factorization's People

Contributors

awf avatar

Watchers

James Cloos 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.