GithubHelp home page GithubHelp logo

tsudacode / dynamoe Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 3.0 302 KB

Model from Tsuda B, Tye KM, Siegelmann HT, Sejnowski TJ. A modeling framework for adaptive lifelong learning with transfer and savings through gating in the prefrontal cortex. Proceedings of the National Academy of Sciences, 117 (47), 29872-29882, 2020. https://doi.org/10.1073/pnas.2009591117

Python 100.00%
neural-networks gating prefrontal-cortex lifelong-learning transfer-learning memory reinforcement-learning

dynamoe's Introduction

DynaMoE

Model from:
Tsuda B, Tye KM, Siegelmann HT, Sejnowski TJ. A modeling framework for adaptive lifelong learning with transfer and savings through gating in the prefrontal cortex. Proceedings of the National Academy of Sciences, 117 (47), 29872-29882, 2020. https://doi.org/10.1073/pnas.2009591117

Rough version of single gating network with 1-3 expert networks

Trains by reinforcement learning with A3C training algorithm of Minh et al. 2016: http://proceedings.mlr.press/v48/mniha16.pdf
Organization of DynaMoE_lesion.py is

  • helper fxns
  • definition of network class
  • definition of worker class
    • train fxn
    • get_experience fxn
    • test fxn
  • main
    • definition of parameters and output directories
    • creation of central network
    • creation of training workers
    • creation of testing workers
    • script to deploy workers for training AND testing

Created with Wisconsin Card Sorting Task environment which loads from WCST_env.py

For lesion studies
Loads a network that was trained sequentially on shape→color→number with new expert network added in each sort rule (n1→n2→n3), then gating network (dnet) was trained on classic interleaved WCST with all experts present.
Lesion indicated is implemented and the network is tested on the classic WCST or using the deck from MWCST (no ambiguous cards).

Command to run DynaMoE:
python3 DynaMoE_lesion.py [NETSZ_D] [NETSZ_E] [TRAIN_ENV] [EPS_TO_TRAIN_ON] [GPU] [LTYPE] [P_ABL] [CARDDECK] [RUNNO]

Citation

If you use this repo in your research, please cite:

@article{Tsuda_2020,
Author = {Tsuda, Ben and Tye, Kay M. and Siegelmann, Hava T. and Sejnowski, Terrence J.},  
Title = {A modeling framework for adaptive lifelong learning with transfer and savings through gating in the prefrontal cortex},  
Journal = {Proceedings of the National Academy of Sciences},  
Publisher = {National Academy of Sciences},  
Volume = {117},  
Number = {47},  
Pages = {29872--29882},  
Doi = {10.1073/pnas.2009591117},  
Year = {2020}}

dynamoe's People

Contributors

tsudacode avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.