pymc.model.core.Model.set_data#
- Model.set_data(name, values, coords=None)[source]#
Changes 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.
- valuesarray_like
New values for the shared variable.
- coordsoptional,
dict
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.
- name