Giter Site home page Giter Site logo

kietzmannlab / blt-pytorch-ccn23 Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 20.15 MB

BLT-pytorch repository for our CCN 2023 paper

Home Page: https://arxiv.org/abs/2308.12435

License: MIT License

Python 0.73% Jupyter Notebook 99.27%
categorization neural-network recurrence miniecoset

blt-pytorch-ccn23's Introduction

BLT ๐Ÿ” model for pytorch

Based on pytorch 1.12.1 and python 3.10

Training:

  • Training files are available in "BLT_train/"
  • You can call "train_net.py" with args that can be configured.
  • Make sure to define 'dataset_path' in train_net.py
  • You can write new models and place them in "models/". Make sure to update loading "get_network_model" function in helper_funcs, and other dependencies.
  • The miniecoset dataset can be found at - https://osf.io/msna2/

Current performance:

  • On one A100, we can train a BLT RNN with a 10 timestep unroll and a batch size of 1024. It takes ~3hrs for 60 epochs. The final timestep accuracy is 50% on the testplus set of miniecoset-100.

Evaluation:

  • Trained and untrained model weights can be found at - https://doi.org/10.17605/OSF.IO/PW238
  • Evaluation files are available in "BLT_analyse/"
  • Run "extract_actvs.py" to extract the activations for the 'testplus' split of MiniEcoset and readout weights required for further analysis
  • Make sure to define 'dataset_path' in extract_actvs.py
  • The model files under "models/" are simply modified from the model files in "BLT_train/" to extract the relevant metrics
  • Run "analysis.ipynb" to interact with the saved metrics and visualise the results

blt-pytorch-ccn23's People

Contributors

novelmartis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blt-pytorch-ccn23's Issues

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.