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.

class pyabc.parameters.ValidParticle(m: int, parameter: pyabc.parameters.Parameter, weight: float, distance_list: List[float], summary_statistics_list: List[dict])

A valid (accepted) particle.

  • m (int) – The model nr
  • parameter (Parameter) – The model specific parameter
  • weight (float, 0 < weight < 1) – The weight of the particle
  • distance_list (List[float]) – A particle can contain more than one sample. If so, the distances of the individual samples are stored in this list. In the most common case of a single sample, this list has length 1.
  • summary_statistics_list – List of summary statistics which describe the sample This list is usually of length 1. This list is longer only if more than one sample is taken for a particle.