pymc.backends.base.MultiTrace.add_values#

MultiTrace.add_values(vals, overwrite=False)[source]#

Add variables to traces.

Parameters
vals: dict (str: array-like)

The keys should be the names of the new variables. The values are expected to be array-like objects. For traces with more than one chain the length of each value should match the number of total samples already in the trace (chains * iterations), otherwise a warning is raised.

overwrite: bool

If False (default) a ValueError is raised if the variable already exists. Change to True to overwrite the values of variables

Returns
None.