ControlEffect.create_effect#

ControlEffect.create_effect(mmm)[source]#

Create the control contribution deterministic in the model.

Parameters:
mmmModel

The MMM model instance.

Returns:
XTensorVariable

The summed control contribution with dims (self.date_dim_name, *mmm.dims).

Raises:
RuntimeError

If create_data was not called before this method (i.e. control_data is not registered in the model).