cymr.cmr.CMRParameters#
- class cymr.cmr.CMRParameters#
Configuration of CMR model parameters.
- fixed#
Values of fixed parameters.
- Type:
dict of (str: float)
- free#
Bounds of each free parameter.
- Type:
dict of (str: tuple)
- dependent#
Expressions to define dependent parameters based the other parameters.
- Type:
dict of (str: str)
- dynamic#
First dict specifies trial_type for dynamic parameters, second dict keys are parameter names, and values are expressions specifying how to update the parameter.
- Type:
dict of (str: dict of (str: str))
- sublayers#
Names of sublayers for each layer in the network.
- Type:
dict of (list of str)
- weights#
Weights template to set network connections. Weights are indicated by region within the network. Each region is specified with a tuple giving names of sublayers and segments: ((f_sublayer, f_segment), (c_sublayer, c_segment)). The value for each region should be an expression to be evaluated with patterns and/or parameters.
- Type:
dict of (tuple of (tuple of str)): str
- sublayer_param#
Parameters that vary by sublayer. These parameters are specified in terms of their layer and sublayer. Each value should contain an expression to be evaluated with parameters.
- Type:
dict of (str: dict of (str: dict of str))
- __init__() None#
Methods
__init__()copy()Copy the parameters definition.
eval_dependent(param)Evaluate dependent parameters based on input parameters.
eval_dynamic(param[, study, recall])Evaluate dynamic parameters based on data fields.
eval_sublayer_param(layer, param[, n_trial, ...])Evaluate sublayer parameters.
eval_weights(patterns[, param, item_index])Evaluate weights based on parameters and patterns.
expand_param(param, names[, n_item, n_sub])Expand parameters to a specified size.
get_dynamic(param, index)Get list-specific parameters.
set_dependent(*args, **kwargs)Set dependent parameters in terms of other parameters.
set_dynamic(trial_type, scope, *args, **kwargs)Set dynamic parameters in terms of parameters and data.
set_fixed(*args, **kwargs)Set fixed parameter values.
set_free(*args, **kwargs)Set free parameter ranges.
set_options(*args, **kwargs)Set model options.
set_sublayer_param(layer, sublayer, *args, ...)Set sublayer parameters.
set_sublayers(*args, **kwargs)Set layers and sublayers of a network.
set_weights(connect, regions)Set weights on model patterns.
to_json(json_file)Write parameter definitions to a JSON file.