Skip to main content

Easy-to-use package for the modeling and analysis of neural network dynamics, directed towards cognitive neuroscientists.

Project description

PsychRNN

Build Status codecov Documentation Status

Paper:

Ehrlich, D. B.*, Stone, J. T.*, Brandfonbrener, D., Atanasov, A., & Murray, J. D. (2021). PsychRNN: An Accessible and Flexible Python Package for Training Recurrent Neural Network Models on Cognitive Tasks. ENeuro, 8(1). [DOI]

Overview

Full documentation is available at psychrnn.readthedocs.io.

This package is intended to help cognitive scientists easily translate task designs from human or primate behavioral experiments into a form capable of being used as training data for a recurrent neural network.

We have isolated the front-end task design, in which users can intuitively describe the conditional logic of their task from the backend where gradient descent based optimization occurs. This is intended to facilitate researchers who might otherwise not have an easy implementation available to design and test hypothesis regarding the behavior of recurrent neural networks in different task environements.

Release announcments are posted on the psychrnn mailing list and on GitHub

Code is written and upkept by: Daniel B. Ehrlich, Jasmine T. Stone, David Brandfonbrener, and Alex Atanasov.

Contact: psychrnn@gmail.com

Getting Started

Start with Hello World Open In Colab to get a quick sense of what PsychRNN does. Then go through the Simple Example Open In Colab to get a feel for how to customize PsychRNN. The rest of Getting Started will help guide you through using available features, defining your own task, and even defining your own model.

Install

Dependencies

PsychRNN was developed to work with both Python 2.7 and 3.4+ using TensorFlow 1.13.1+. It is currently being tested on Python 2.7 and 3.4-3.8 with TensorFlow 1.13.1-2.2.

Note: TensorFlow 2.2 does not support Python < 3.5. Only TensorFlow 1.13.1-1.14 are compatible with Python 3.4. Python 3.8 is only supported by TensorFlow 2.2.

Installation

Normally, you can install with:

pip install psychrnn

Alternatively, you can download and extract the source files from the GitHub release. Within the downloaded PsychRNN folder, run:

    python setup.py install

[THIS OPTION IS NOT RECOMMENDED FOR MOST USERS] To get the most recent (not necessarily stable) version from the github repo, clone the repository and install:

    git clone https://github.com/murraylab/PsychRNN.git
    cd PsychRNN
    python setup.py install

Contributing

Please report bugs to https://github.com/murraylab/psychrnn/issues. This includes any problems with the documentation. Fixes (in the form of pull requests) for bugs are greatly appreciated.

Feature requests are welcome but may or may not be accepted due to limited resources. If you implement the feature yourself we are open to accepting it in PsychRNN. If you implement a new feature in PsychRNN, please do the following before submitting a pull request on GitHub:

  • Make sure your code is clean and well commented
  • If appropriate, update the official documentation in the docs/ directory
  • Write unit tests and optionally integration tests for your new feature in the tests/ folder.
  • Ensure all existing tests pass (pytest returns without error)

For all other questions or comments, contact psychrnn@gmail.com.

License

All code is available under the MIT license. See LICENSE for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PsychRNN-1.0.0.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PsychRNN-1.0.0-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file PsychRNN-1.0.0.tar.gz.

File metadata

  • Download URL: PsychRNN-1.0.0.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

File hashes

Hashes for PsychRNN-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c4585f4595148c3037b53339eeb9687d2a6fb13e2ca4b26ea6f5a0969ec0662d
MD5 c815fe8ba21f4d9d648905d6421ae4ab
BLAKE2b-256 2e44529363db437f6e3f1705067d84ef04d28f5c2ebd9aeccc8aeccaf009dfcd

See more details on using hashes here.

File details

Details for the file PsychRNN-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: PsychRNN-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 39.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

File hashes

Hashes for PsychRNN-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4dfa6fe5c47b0711ab0220f72de6850157459eb72ad0419dd3c324e89a730518
MD5 65ab9f74aedfa4201c1b6098047b37c8
BLAKE2b-256 b8315477d32da79f6a0f3766eeb9e19d9082e40c704b615a60e03ef4a5201500

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page