-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pre-commit config to standardize files (#42)
* Add pre-commit config * add formatted file * Adapt pre-commit config * Move PR template * update ignore list for isort * Ignore third_party for yapf * Add yapfignore * add yapf exclude rules * update * update pre commit * Update pre commit config * Standardize files with current pre-commit config
- Loading branch information
Showing
56 changed files
with
395 additions
and
365 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ name: Build docs | |
on: | ||
push: | ||
branches: | ||
- main | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
- main | ||
- public | ||
- dev | ||
|
||
|
@@ -25,7 +25,7 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Checkout cebra figures | ||
- name: Checkout cebra figures | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: AdaptiveMotorControlLab/cebra-figures | ||
|
@@ -44,7 +44,7 @@ jobs: | |
cp -r assets/* . | ||
rm -r assets | ||
- name: Checkout cebra demos | ||
- name: Checkout cebra demos | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: AdaptiveMotorControlLab/cebra-demos | ||
|
@@ -70,12 +70,12 @@ jobs: | |
export SPHINXOPTS="-W --keep-going -n" | ||
make docs | ||
# NOTE(stes): To avoid issues as observed in | ||
# NOTE(stes): To avoid issues as observed in | ||
# https://github.com/AdaptiveMotorControlLab/CEBRA/pull/20, we modified | ||
# this workflow to not rely on PATs. All repos except for the website | ||
# repo are public and only read access is required, so we simply removed | ||
# the tokens from the checkout actions. | ||
# | ||
# | ||
# For pushing the docs, I temporarily disabled the staging repo, which | ||
# does not add anything informative to the contributor anyways, as it just | ||
# tests whether or not docs can be pushed (the staging branch is not deployed). | ||
|
@@ -108,5 +108,4 @@ jobs: | |
destination-repository-name: 'cebra-ai' | ||
user-name: stes | ||
user-email: [email protected] | ||
target-branch: main | ||
|
||
target-branch: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: check-executables-have-shebangs | ||
- id: check-toml | ||
- repo: https://github.com/google/yapf | ||
rev: v0.33.0 | ||
hooks: | ||
- id: yapf | ||
additional_dependencies: | ||
- pyproject.toml | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
additional_dependencies: | ||
- pyproject.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
third_party/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers. | |
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [email protected] or [email protected]. | ||
reported by contacting the project team at [email protected] or [email protected]. | ||
All complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,60 +7,60 @@ Steffen Schneider, Jin H Lee, Mackenzie W Mathis. 2023. | |
**Introduction** | ||
|
||
- This license agreement sets forth the terms and conditions under which ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE ( EPFL), | ||
CH-1015 Lausanne, Switzerland and Prof. Mackenzie W. Mathis and code authors (hereafter "LICENSOR") will grant you | ||
CH-1015 Lausanne, Switzerland and Prof. Mackenzie W. Mathis and code authors (hereafter "LICENSOR") will grant you | ||
(hereafter "LICENSEE") a fully-paid, non-exclusive, and non-transferable license for academic, non-commercial purposes only | ||
(hereafter “LICENSE”) to use the "CEBRA" computer software program (hereafter "PROGRAM"). | ||
|
||
- LICENSEE acknowledges that the PROGRAM is a research tool that is being supplied "as is", without any related services, | ||
improvements or warranties from LICENSOR and that this license is entered into in order to enable others to utilize the | ||
PROGRAM in their academic activities. | ||
PROGRAM in their academic activities. | ||
|
||
- The ideas covered in this work is also patent pending (as of Jan 2023): US 63/302,670 “DIMENSIONALITY REDUCTION OF TIME-SERIES DATA, | ||
- The ideas covered in this work is also patent pending (as of Jan 2023): US 63/302,670 “DIMENSIONALITY REDUCTION OF TIME-SERIES DATA, | ||
AND SYSTEMS AND DEVICES THAT USE THE RESULTANT EMBEDDINGS” | ||
|
||
- If this license is not appropriate for your application, please contact Prof. Mackenzie W. Mathis ([email protected]) | ||
and/or the TTO office at EPFL ([email protected]) for a commercial use license. | ||
|
||
**Terms and Conditions of the LICENSE** | ||
1. LICENSOR grants to LICENSEE a fully-paid up, non-exclusive, and non-transferable license to use the PROGRAM for academic, | ||
non-commercial purposes, upon the terms and conditions hereinafter set out and until termination of this license as set | ||
non-commercial purposes, upon the terms and conditions hereinafter set out and until termination of this license as set | ||
forth below. | ||
|
||
2. LICENSEE acknowledges the PROGRAM is provided "as is", without any related services or improvements from LICENSOR and | ||
2. LICENSEE acknowledges the PROGRAM is provided "as is", without any related services or improvements from LICENSOR and | ||
that the LICENSE is entered into in order to enable others to utilize the PROGRAM in their academic activities. | ||
|
||
3. LICENSOR MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY REPRESENTATIONS OR | ||
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR PARTICULAR PURPOSE OR THAT THE USE OF THE PROGRAM WILL NOT INFRINGE ANY | ||
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR PARTICULAR PURPOSE OR THAT THE USE OF THE PROGRAM WILL NOT INFRINGE ANY | ||
PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. LICENSOR shall not be liable for any direct, indirect or consequential | ||
damages with respect to any claim by LICENSEE or any third party arising from this Agreement or use of the PROGRAM. | ||
4. LICENSEE agrees that it will use the PROGRAM, and any modifications, improvements, or derivatives to PROGRAM that | ||
LICENSEE may create (collectively, "IMPROVEMENTS") solely for academic, non-commercial purposes and shall not | ||
|
||
4. LICENSEE agrees that it will use the PROGRAM, and any modifications, improvements, or derivatives to PROGRAM that | ||
LICENSEE may create (collectively, "IMPROVEMENTS") solely for academic, non-commercial purposes and shall not | ||
distribute or transfer the PROGRAM or any IMPROVEMENTS to any person without prior written permission from LICENSOR. | ||
Any IMPROVEMENTS must remain open source with a copy of this license. The terms "academic, non-commercial", as used | ||
in this Agreement, mean academic or other scholarly research which (a) is not undertaken for profit, or (b) is not | ||
in this Agreement, mean academic or other scholarly research which (a) is not undertaken for profit, or (b) is not | ||
intended to produce works, services, or data for commercial use, or (c) is neither conducted, nor funded, by a person | ||
or an entity engaged in the commercial use, application or exploitation of works similar to the PROGRAM. | ||
|
||
5. LICENSEE agrees that they shall credit the use of CEBRA with an appropriate citation: | ||
Steffen Schneider, Jin H. Lee, Mackenzie Weygandt Mathis. Learnable latent embeddings for joint behavioral | ||
5. LICENSEE agrees that they shall credit the use of CEBRA with an appropriate citation: | ||
Steffen Schneider, Jin H. Lee, Mackenzie Weygandt Mathis. Learnable latent embeddings for joint behavioral | ||
and neural analysis. Nature 2023 doi: https://doi.org/10.1038/s41586-023-06031-6. | ||
|
||
6. Ownership of all rights, including copyright in the PROGRAM and in any material associated therewith, shall at all times | ||
remain with LICENSOR and LICENSEE agrees to preserve the same. LICENSEE agrees not to use any portion of the PROGRAM or | ||
of any IMPROVEMENTS in any machine-readable form outside the PROGRAM, nor to make any copies except for its internal use, | ||
remain with LICENSOR and LICENSEE agrees to preserve the same. LICENSEE agrees not to use any portion of the PROGRAM or | ||
of any IMPROVEMENTS in any machine-readable form outside the PROGRAM, nor to make any copies except for its internal use, | ||
without prior written consent of LICENSOR. LICENSEE agrees to maintain this license file with the source code and place the | ||
following copyright notice on any such copies: | ||
following copyright notice on any such copies: | ||
|
||
© All rights reserved. ECOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE, Switzerland, Laboratory of Prof. Mackenzie W. Mathis | ||
(UPMWMATHIS) and original authors: Steffen Schneider, Jin H Lee, Mackenzie W Mathis. 2023. | ||
|
||
7. The LICENSE shall not be construed to confer any rights upon LICENSEE by implication or otherwise except as specifically | ||
set forth herein. | ||
|
||
8. This Agreement shall be governed by the material laws of Switzerland and any dispute arising out of this Agreement or | ||
use of the PROGRAM shall be brought before the courts of Lausanne, Switzerland. | ||
8. This Agreement shall be governed by the material laws of Switzerland and any dispute arising out of this Agreement or | ||
use of the PROGRAM shall be brought before the courts of Lausanne, Switzerland. | ||
|
||
9. This Agreement and the LICENSE shall remain effective until expiration of the copyrights of the PROGRAM except that, | ||
9. This Agreement and the LICENSE shall remain effective until expiration of the copyrights of the PROGRAM except that, | ||
upon any breach of this Agreement by LICENSEE, LICENSOR shall have the right to terminate the LICENSE immediately upon | ||
notice to LICENSEE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div align="center"> | ||
|
||
|
||
<p align="center"> | ||
<img src="https://images.squarespace-cdn.com/content/v1/57f6d51c9f74566f55ecf271/6f3943a1-b76d-4674-9df9-87aebd33e517/cebralogo.png?format=2500w" width="95%"> | ||
|
@@ -11,7 +11,7 @@ | |
[🛠️ Installation](https://cebra.ai/docs/installation.html) | | ||
[🌎 Home Page](https://www.cebra.ai) | | ||
[🚨 News](https://cebra.ai/docs/index.html) | | ||
[🪲 Reporting Issues](https://github.com/AdaptiveMotorControlLab/CEBRA) | ||
[🪲 Reporting Issues](https://github.com/AdaptiveMotorControlLab/CEBRA) | ||
|
||
|
||
[![Downloads](https://static.pepy.tech/badge/cebra)](https://pepy.tech/project/cebra) | ||
|
@@ -30,19 +30,19 @@ | |
|
||
To receive updates on code releases, please 👀 watch or ⭐️ star this repository! | ||
|
||
``cebra`` is a self-supervised method for non-linear clustering that allows for label-informed time series analysis. | ||
``cebra`` is a self-supervised method for non-linear clustering that allows for label-informed time series analysis. | ||
It can jointly use behavioral and neural data in a hypothesis- or discovery-driven manner to produce consistent, high-performance latent spaces. While it is not specific to neural and behavioral data, this is the first domain we used the tool in. This application case is to obtain a consistent representation of latent variables driving activity and behavior, improving decoding accuracy of behavioral variables over standard supervised learning, and obtaining embeddings which are robust to domain shifts. | ||
|
||
|
||
# Reference | ||
# Reference | ||
|
||
- 📄 **Publication May 2023**: | ||
[Learnable latent embeddings for joint behavioural and neural analysis.](https://doi.org/10.1038/s41586-023-06031-6) | ||
Steffen Schneider*, Jin Hwa Lee* and Mackenzie Weygandt Mathis. Nature 2023. | ||
|
||
- 📄 **Preprint April 2022**: | ||
[Learnable latent embeddings for joint behavioral and neural analysis.](https://arxiv.org/abs/2204.00673) | ||
Steffen Schneider*, Jin Hwa Lee* and Mackenzie Weygandt Mathis | ||
|
||
# License | ||
- CEBRA is released for academic use only (please read the license file). If this license is not appropriate for your application, please contact Prof. Mackenzie W. Mathis ([email protected]) for a commercial use license. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.