Code Monkey home page Code Monkey logo

shica's Introduction

ShICA

CircleCI

Code accompanying the paper Shared Independent Component Analysis for Multi-subject Neuroimaging

Install

Move into the ShICA directory cd ShICA

Install ShICA pip install -e .

Reproduce synthetic experiments in Figure 2

Move into the experiments directory cd experiments

Run the bash script to produce results (should take approximately 3 minutes on a modern laptop) bash run_all.bash

Move into the plotting directory cd plotting

Run the bash script to produce figures from the results bash plot_all.bash

Figures are available in the figures directory.

Performances on Gaussian sources:

Full non Gaussian

Performances on non Gaussian sources:

Full Gaussian

Performances when some sources are Gaussian and some non-Gaussian:

Semi Gaussian

Note The current implementation uses only 10 seeds and 4 different number of samples in the curves so that computation time is low even on a laptop. In order to obtain exactly the same curves as in the paper you should modify the files rotation.py, full_nongaussian.py and semigaussian.py in the experiments directory so that

num_points = 20
seeds = np.arange(40)
ns = np.logspace(2, 5, num_points)

Real data experiments

We give the code to run experiments on timesegment matching.

Download and mask Sherlock data

Move into the data directory

cd experiments/data

Launch the download script (Runtime 34m6.751s)

bash download_data.sh

Mask the data (Runtime 15m27.104s)

python mask_data.py

Timesegment matching

Move into the experiments directory

cd experiments

Run the experiment on masked data (Runtime 17m39.520s)

python timesegment_matching.py

Timesegment matching

This runs the experiment with n_components = 5 and benchmark ShiCA-J and ShICA-ML with SRM as the dimension reduction method.

Documentation

https://hugorichard.github.io/ShICA/index.html

Cite

If you use this code in your project, please cite:

@inproceedings{NEURIPS2021_fb508ef0,
 author = {Richard, Hugo and Ablin, Pierre and Thirion, Bertrand and Gramfort, Alexandre and Hyvarinen, Aapo},
 booktitle = {Advances in Neural Information Processing Systems},
 editor = {M. Ranzato and A. Beygelzimer and Y. Dauphin and P.S. Liang and J. Wortman Vaughan},
 pages = {29962--29971},
 publisher = {Curran Associates, Inc.},
 title = {Shared Independent Component Analysis for Multi-Subject Neuroimaging},
 url = {https://proceedings.neurips.cc/paper/2021/file/fb508ef074ee78a0e58c68be06d8a2eb-Paper.pdf},
 volume = {34},
 year = {2021}
}

shica's People

Contributors

hugorichard avatar agramfort avatar

Stargazers

Guanlin He avatar Yasuo Kabe avatar Angeliki Karaiskou avatar Jibran Haider avatar Samia Belhaddad avatar Дим Щ avatar eeGuoJun avatar heyanbai avatar Quentin Bertrand avatar Akimitsu Inoue avatar Aurelio Cortese avatar

Watchers

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