CMR implemented using Cython.
Project description
cymr
Experimental implementation of the CMR model using Cython.
See the website for full documentation.
Installation
python setup.py install
or, to install for development:
python setup.py develop
This will set links to the package modules so that you can edit the source code and have changes be reflected in your installation.
Unit tests
First, install pytest:
pip install pytest
To run all tests:
cd cymr
pytest
Benchmark
To run a speed benchmark test, first install snakeviz (pip install snakeviz
). To run likelihood calculation with a sample dataset and then display an html report:
./benchmark
Design
cymr.network
- core model code. The network class is flexible and can be used to implement different model versions. Also includes functions for working with model "patterns" that can be used to initialize weight matrices.cymr.fit
- code for fitting and simulating free recall data. The general framework is applicable for multiple models of free recall, including but not limited to CMR.cymr.models
- library of model implementations. They inherit from cymr.fit.Recall, which handles some of the complications in fitting and simulating data. Implementing a new model requires only writing methods to calculate likelihood of free recall data for one subject, and to generate data for one subject.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cymr-0.8.1.tar.gz
(606.5 kB
view hashes)
Built Distribution
Close
Hashes for cymr-0.8.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99ce6f70a0dd1821421c5fb04d16f985ac57ba740413ca03986f6c4030944707 |
|
MD5 | be2d412df8a8fab964e150a0a9c1f37e |
|
BLAKE2b-256 | ab272bd8f7cf195f551344ab149a5aba490dd6e97c53e70abe744b8d9fbc3bec |