Coder Social home page Coder Social logo

afcarl / multi-scones Goto Github PK

View Code? Open in Web Editor NEW

This project forked from borgwardtlab/multi-scones

0.0 0.0 0.0 12 KB

Multi-task feature selection coupled with multiple network regularizers

License: GNU General Public License v2.0

R 100.00%

multi-scones's Introduction

Multi-SConES

A multi-task version of SConES, which achieves multi-task feature selection coupled with multiple network regularizers using a maximum-flow algorithm.

Please see the following paper for detailed information:

  • M. Sugiyama, C.-A. Azencott, D. Grimm, Y. Kawahara, K. M. Borgwardt: Multi-Task Feature Selection on Multiple Networks via Maximum Flows, Proceedings of the SIAM International Conference on Data Mining (SDM 2014), 199-207, 2014 [PDF]

Usage

To load files, type in R (without the >, which signifies the prompt):

> source("make.R")
> make()

To run Multi-SConES, type in R:

> mscones(g = g, X = X, Y = Y, lambda = lambda, eta = eta, mu = mu)
  • Two R packages igraph and glmnet need to be installed
  • g is a graph (in igraph format)
  • X is a data matrix (rows: objects, columns: features, each feature corresponds to each vertex in g)
  • Y is a matrix of response vectors (rows: objects, columns: tasks)
  • lambda, eta, mu are parameters (they should be determined by grid-search with cross-validation)
  • output: selected features for each task

Example

> source("make.R")
> make()
> d1 <- generate.data(200, 1, seed = 1)
> d2 <- generate.data(200, 2, seed = 1)
> X <- d1$x; Y <- cbind(d1$y, d2$y)
# simulate two tasks d1$y and d2$y, and d1$x and d2$x are the same
# features from 1 to 44 are causal
> g <- generate.graph()
> res <- mscones(g = g, X = X, Y = Y)
> res
$`selected features for task 1`
+ 44/4402 vertices, from 53a17ed:
 [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
[26] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44

$`selected features for task 2`
+ 44/4402 vertices, from 53a17ed:
 [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
[26] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44

Contact

multi-scones's People

Contributors

mahito-sugiyama 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.