Model parameters

Parameters define the model input variables that are to be inferred using ABC.

class pyabc.parameters.Parameter(*args, **kwargs)[source]

Bases: ParameterStructure

A single model parameter.

Parameters are essentially a dictionary with the additional functionality to add and subtract parameters.

I.e. par_1 + par_2 adds key wise.

Contents can be accessed with square brackets or in dot notation.

For example

>>> p = Parameter(a=1, b=2)
>>> assert p.a == p["a"]


>>> p = Parameter({"a": 1, "b": 2})
>>> assert p.a == p["a"]
copy() Parameter[source]

Copy the parameter.

class pyabc.parameters.ParameterStructure(*args, **kwargs)[source]

Bases: dict

Basic functionality of a structure containing parameters.

__init__(*args, **kwargs)[source]