PyMCModel.set_data#
- PyMCModel.set_data(name, values, coords=None)#
Change the values of a data variable in the model.
In contrast to pm.Data().set_value, this method can also update the corresponding coordinates.
- Parameters:
name (
str) – Name of a shared variable in the model.values (
Sequence|ndarray) – New values for the shared variable.coords (
dict[str,Sequence] |None) – New coordinate values for dimensions of the shared variable. Must be provided for all named dimensions that change in length and already have coordinate values.