Skip to main content

CMR implemented using Cython.

Project description

cymr

PyPI version Documentation Status Build Status codecov

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


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)

Uploaded Source

Built Distribution

cymr-0.8.1-cp38-cp38-macosx_10_9_x86_64.whl (555.9 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

Supported by

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