CustomModelWrapper#
- class pymc_marketing.mmm.budget_optimizer.CustomModelWrapper(base_model, idata, channels)[source]#
Wrapper for the BudgetOptimizer to handle custom PyMC models.
Methods
CustomModelWrapper.__init__(base_model, ...)Create a new model by parsing and validating input data from keyword arguments.
CustomModelWrapper.construct([_fields_set])CustomModelWrapper.copy(*[, include, ...])Returns a copy of the model.
CustomModelWrapper.dict(*[, include, ...])CustomModelWrapper.json(*[, include, ...])Compute the class name for parametrizations of generic classes.
CustomModelWrapper.parse_file(path, *[, ...])CustomModelWrapper.parse_raw(b, *[, ...])CustomModelWrapper.schema([by_alias, ...])CustomModelWrapper.schema_json(*[, ...])CustomModelWrapper.update_forward_refs(**localns)CustomModelWrapper.validate(value)Attributes
model_computed_fieldsmodel_configConfiguration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].model_extraGet extra fields set during validation.
model_fieldsmodel_fields_setReturns the set of fields that have been explicitly set on this model instance.
base_modelidatachannel_columnsadstock