class pyabc.parameters.Parameter(*args, **kwargs)

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() → pyabc.parameters.Parameter

Copy the parameter.