BaseValidateMMM.build_model#

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

Create an instance of pm.Model based on provided data and model_config.

It attaches the model to self.model.

Parameters:
Xpd.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.

yUnion[pd.Series, np.ndarray]

The target data for the model. This should be a Series representing the output or dependent variable for the model.

kwargsdict

Additional keyword arguments that may be used for model configuration.

Returns:
None

See also

default_model_config

returns default model config