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:
- 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.
- X
- Returns:
See also
default_model_config
returns default model config