MMM.build_model#

abstract MMM.build_model(X, y, **kwargs)#

Creates an instance of pm.Model based on provided data and model_config, and attaches it to self.

Parameters:
  • X (pd.DataFrame) – The input data that is going to be used in the model. This should be a DataFrame containing the features (predictors) for the model. For efficiency reasons, it should only contain the necessary data columns, not the entire available dataset, as this will be encoded into the data used to recreate the model.

  • y (Union[pd.Series, np.ndarray]) – The target data for the model. This should be a Series representing the output or dependent variable for the model.

  • kwargs (dict) – Additional keyword arguments that may be used for model configuration.

See also

default_model_config

returns default model config

Return type:

None

Raises:

NotImplementedError – This is an abstract method and must be implemented in a subclass.