Coder Social home page Coder Social logo

maxfburg / most-discriminative-stimuli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ecker-lab/most-discriminative-stimuli

0.0 0.0 0.0 65 KB

Code for Burg et al. ICLR (2024): Most discriminative stimuli for functional cell type identification https://openreview.net/forum?id=9W6KaAcYlr

Home Page: https://openreview.net/forum?id=9W6KaAcYlr

License: MIT License

Python 100.00%

most-discriminative-stimuli's Introduction

Most Discriminative Stimuli

Official implementation of the optimization based clustering algorithm described in the ICLR 2024 paper Most discriminative stimuli for functional cell type clustering.

Installation

The code is tested using python3.9. Install it as follows:

# Optional: create and activate virtual environment
python3.9 -m venv venv
source venv/bin/activate
# Install repository
pip install --use-pep517 .

Example

We provide an example script that clusters neurons of a very simple example model containing only on and off cells. We start the clustering by assuming the neurons of the model can be grouped into 5 clusters, and the algorithm converges to the correct number of 2 clusters.

# Print help message
./scripts/run_kmeans_example.py --help
# Run example clustering
./scripts/run_kmeans_example.py --num_clusters 5 --num_neurons 42 --device cpu --save_data_path "kmeans_test_results"

You will then find the output including plots of the clustering in the folder kmeans_test_results.

We will continuously add code to reproduce the paper figures.

Code authors

Cite as

@inproceedings{
burg2024most,
title={Most discriminative stimuli for functional cell type clustering},
author={Max F Burg and Thomas Zenkel and Michaela Vystr{\v{c}}ilov{\'a} and Jonathan Oesterle and Larissa H{\"o}fling and Konstantin Friedrich Willeke and Jan Lause and Sarah M{\"u}ller and Paul G. Fahey and Zhiwei Ding and Kelli Restivo and Shashwat Sridhar and Tim Gollisch and Philipp Berens and Andreas S. Tolias and Thomas Euler and Matthias Bethge and Alexander S Ecker},
booktitle={The Twelfth International Conference on Learning Representations},
year={2024},
url={https://openreview.net/forum?id=9W6KaAcYlr}
}

most-discriminative-stimuli's People

Contributors

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