Skip to content

Code for training and inferring the TAP model brain.

Notifications You must be signed in to change notification settings

rajdbz11/Inferring-TAPBrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0e0c3be · Sep 28, 2023

History

22 Commits
Sep 19, 2023
Sep 28, 2023
Sep 28, 2023
Sep 19, 2023
Sep 18, 2023
Sep 28, 2023

Repository files navigation

Inferring-TAPBrain

Code for training and inferring the TAP model brain.

Dependencies: Python 3.5.6 or newer, PyTorch 1.5.1 or newer.

Description of contents

code

This folder contains the main python code:

  • rnnmodel.py : RNN model for the TAP brain
  • tapdynamics.py : functions for generating the TAP dynamics
  • particlefilter.py : particle filter and Q function required for particle-EM
  • notebookutils.py : functions for loading a TAP brain, generating model parameters, etc
  • utils.py : all other required utils

data/brains

This folder contains the parameters for a few example TAP brains.

data/pem-estimates

This folder contains particle-EM estimates for a few example TAP brains.

notebooks

  • TrainTAPbrain.ipynb : example notebook that illustrates the training of a TAP brain model
  • InferTAPbrain.ipynb : example notebook that illustrates inferring inference in a TAP brain model
  • GreedyBackwardSearch.ipynb: example notebook that illustrates the greedy approach to find the best set of G and J parameters

scripts

  • InferTAPbrain.py : script for inferring inference in a TAP brain model
  • runscripts.sh: shell script for launching multiple inference jobs in parallel

About

Code for training and inferring the TAP model brain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published