CMR#
Tools for implementing variants of the context maintenance and retrieval model (CMR).
The cmr module provides tools for implementing various CMR
model variants using the CMR class. Rather than implementing
one specific version of CMR, CMR is designed to be highly
configurable via changes to the CMRParameters class, which
supports various ways of defining network weights and parameter values.
Model variants may be evaluated against observed data by calculating likelihood, or fitted to data using a parameter search. They can also be used to generate simulated data.
Model variants are defined by CMRParameters objects, which
may be saved to JSON files, and patterns, which are stored in HDF5 format.
The patterns define representations associated with individual items. The
patterns may be orthonormal, as in the original implementations of TCM and
CMR, or they may be overlapping, as in DCMR. CMRParameters
specify how patterns are used to determine weights in the network, among
other model settings.
Model framework#
|
Context Maintenance and Retrieval model. |
|
Log likelihood summed over all subjects. |
|
Fit parameters to individual subjects. |
|
Generate simulated data for all subjects. |
|
Record model states during a simulation. |
|
Simulate data with varying parameters. |
|
Run multiple iterations of parameter recovery. |
Model configuration#
|
Write patterns and similarity matrices to hdf5. |
|
Load weights from an hdf5 file. |
|
Read model configuration from a JSON file. |
|
Configure a localist CMR network. |
Model parameters#
Configuration of CMR model parameters. |
|
|
Set fixed parameter values. |
|
Set free parameter ranges. |
|
Set dependent parameters in terms of other parameters. |
|
Evaluate dependent parameters based on input parameters. |
|
Set dynamic parameters in terms of parameters and data. |
|
Evaluate dynamic parameters based on data fields. |
|
Set layers and sublayers of a network. |
|
Set weights on model patterns. |
|
Set sublayer parameters. |