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.from_orm(obj)

CustomModelWrapper.json(*[, include, ...])

CustomModelWrapper.model_parametrized_name(params)

Compute the class name for parametrizations of generic classes.

CustomModelWrapper.parse_file(path, *[, ...])

CustomModelWrapper.parse_obj(obj)

CustomModelWrapper.parse_raw(b, *[, ...])

CustomModelWrapper.schema([by_alias, ...])

CustomModelWrapper.schema_json(*[, ...])

CustomModelWrapper.update_forward_refs(**localns)

CustomModelWrapper.validate(value)

Attributes

model_computed_fields

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_extra

Get extra fields set during validation.

model_fields

model_fields_set

Returns the set of fields that have been explicitly set on this model instance.

base_model

idata

channel_columns

adstock