Giter VIP home page Giter VIP logo

spatial-network-regression's Introduction

Spatial Network Regression

Fit a network connection matrix using smoothness regularized least-squares regression. This solves the regularized regression problem:

min_W>0 ||W*X-Y||^2 + lambda*(ninj/nx)*||W*Lx + Ly*W||^2

or, if Omega is given, solve:

min_W>0 ||P(W*X-Y)||^2 + lambda*(ninj/nx)*||W*Lx + Ly*W||^2,

where P=P_Omega^c is the projection onto the complement of Omega.

The code implements checkpointing and can making an initial guess by solving the unregularized problem.

Requirements:

Optional requirements:

  • optimized BLAS (MKL, OpenBLAS, etc.). This will require editing the Makefile to point to your installed libraries. An example with this structure is in Makefile.hyak.

Building: make all

To run a test case, try running test. The final lines should be:

At iterate   160, f(x)= 4.85e+01, ||proj grad||_infty = 1.26e-02
At iterate   161, f(x)= 4.85e+01, ||proj grad||_infty = 9.73e-03
           * * * 
Tit   = total number of iterations
Tnf   = total number of function evaluations
Tnint = total number of segments explored during Cauchy searches
Skip  = number of BFGS updates skipped
Nact  = number of active bounds at final generalized Cauchy point
Projg = norm of the final projected gradient
F     = final function value
           * * * 
   N    Tit   Tnf  Tnint  Skip  Nact      Projg        F
120000   161   165 154333     0 107113	9.73e-03 4.84880e+01
F(x) = 4.848795812e+01
22
Cauchy                time 1.322e+00 seconds.
Subspace minimization time 2.035e+00 seconds.
Line search           time 5.812e+00 seconds.
 Total User time 1.045e+01 seconds.
CONVERGED!

spatial-network-regression's People

Contributors

kamdh avatar

Stargazers

mnarayan avatar

Watchers

 avatar

Forkers

mutual-ai

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.