WeightedSumFitter.set_data#

WeightedSumFitter.set_data(name, values, coords=None)#

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.

  • values (array_like) – New values for the shared variable.

  • coords (optional, 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.