https://github.com/adaptivemotorcontrollab/cebra-demos

CEBRA Demo Notebooks. Please see all of them at the URL below:

https://github.com/adaptivemotorcontrollab/cebra-demos

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 6 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.5%) to scientific vocabulary

Keywords from Contributors

contrastive-learning neuroscience-methods
Last synced: 10 months ago · JSON representation

Repository

CEBRA Demo Notebooks. Please see all of them at the URL below:

Basic Info
  • Host: GitHub
  • Owner: AdaptiveMotorControlLab
  • License: other
  • Language: Jupyter Notebook
  • Default Branch: main
  • Homepage: https://cebra.ai/docs/demos.html
  • Size: 91.8 MB
Statistics
  • Stars: 16
  • Watchers: 1
  • Forks: 6
  • Open Issues: 0
  • Releases: 0
Created about 3 years ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.rst

Demo Notebooks
==============

We provide a set of demo notebooks to get started with using CEBRA. To
run the notebooks, you need a working Jupyter notebook server, a CEBRA
installation, and the datasets required to run the notebooks, available on 
`FigShare `_.


.. nbgallery::
   :maxdepth: 2

   Getting Started with CEBRA 
   Encoding of space, hippocampus (CA1) 
   Decoding movie features from (V1) visual cortex 
   Forelimb dynamics, somatosensory (S1) 
   Synthetic neural benchmarking 
   Hypothesis-driven analysis 
   Consistency 
   Decoding 
   Topological data analysis 
   Unified encoders via behavioral alignment 
   Technical: Training models across animals 
   Technical: conv-piVAE 
   Technical: S1 training with MSE loss 
   Technical: Learning the temperature parameter 
   Demo: Using OpenScope Data 
   Demo: Using Dandi Data 
   Demo: Using CEBRA on DeepLabCut outputs 
   Explainability: xCEBRA on RatInABox dataset 
   

The demo notebooks can also be found on `GitHub `__.

Installation
------------

Before you can run these notebooks, you must have a working installation of CEBRA.
Please see the dedicated :doc:`Installation Guide ` for information on installation options using ``conda``, ``pip`` and ``docker``.

Synthetic Experiment Demo (CEBRA, piVAE, tSNE, UMAP):
This demo requires several additional packages that have differing
requirements to CEBRA. Therefore, we recommend using the supplied
``docker`` container or ``conda`` cebra-full env.


Demo Data 
---------

We host prepackaged data on
`figshare `__. And several of the demo notebooks have an automatic data download function.


If you don't see the auto-download, and you use Google Colaboratory, you can easily add the following code into an early cell in the notebook to directly download and use:

.. code-block::

   #for google colab only, run this cell to download and extract data:
   !wget --content-disposition https://figshare.com/ndownloader/files/36869049?private_link=60adb075234c2cc51fa3
   !mkdir data
   !tar -xvf "/content/data.tgz" -C "/content/data"

For different paths, you can specify the ``CEBRA_DATADIR=...``
environment variable. You can do this by placing
``import os; os.environ['CEBRA_DATADIR'] = "path/to/your/data"`` at the
**top** of your notebook.

Contributing 
------------

We welcome Demo notebooks from others! Please `fork the repo `__, add your notebook, check that it works on Google Colaboratory (remove the launch button within your PR), and then open a PR! Please also edit the "gallery" list (see the soure code for this page), and finally, add an icon `here `__, then a path to the icon `here `__.


For reference, the original open-source data we used in Schneider, Lee, Mathis 2023 is available at:

- `Hippocampus dataset `_, using a 
  `preprocessing script `_.
- `Primate S1 dataset `_.
- Allen Institute `Neuropixels dataset `_ and `2P dataset  `_.


Owner

  • Name: Mathis Lab | Adaptive Motor Control
  • Login: AdaptiveMotorControlLab
  • Kind: organization
  • Email: mackenzie@post.harvard.edu
  • Location: Swiss Federal Institute of Technology

Mechanisms underlying adaptive behavior in intelligent systems

GitHub Events

Total
  • Watch event: 4
  • Delete event: 8
  • Issue comment event: 5
  • Push event: 27
  • Pull request review event: 5
  • Pull request event: 28
  • Fork event: 3
  • Create event: 8
Last Year
  • Watch event: 4
  • Delete event: 8
  • Issue comment event: 5
  • Push event: 27
  • Pull request review event: 5
  • Pull request event: 28
  • Fork event: 3
  • Create event: 8

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 39
  • Total Committers: 6
  • Avg Commits per committer: 6.5
  • Development Distribution Score (DDS): 0.359
Past Year
  • Commits: 11
  • Committers: 2
  • Avg Commits per committer: 5.5
  • Development Distribution Score (DDS): 0.182
Top Committers
Name Email Commits
Mackenzie Mathis m****s@r****u 25
Steffen Schneider s****s@h****m 7
Rodrigo González Laiz 3****o 3
Jerome Lecoq j****q@g****m 2
Jin Lee h****e@g****m 1
Celia Benquet c****t@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 3
  • Total pull requests: 45
  • Average time to close issues: 19 days
  • Average time to close pull requests: 19 days
  • Total issue authors: 3
  • Total pull request authors: 5
  • Average comments per issue: 1.67
  • Average comments per pull request: 0.62
  • Merged pull requests: 34
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 28
  • Average time to close issues: about 2 hours
  • Average time to close pull requests: 2 days
  • Issue authors: 1
  • Pull request authors: 3
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.36
  • Merged pull requests: 19
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • stes (1)
Pull Request Authors
  • MMathisLab (27)
  • stes (11)
  • CeliaBenquet (2)
  • gonlairo (2)
Top Labels
Issue Labels
Pull Request Labels
enhancement (2)