EventEffect#

class pymc_marketing.mmm.events.EventEffect(**data)[source]#

Event effect associated with an event model.

Methods

EventEffect.__init__(**data)

Create a new model by parsing and validating input data from keyword arguments.

EventEffect.apply(X[, name])

Apply the event effect to the data.

EventEffect.construct([_fields_set])

EventEffect.copy(*[, include, exclude, ...])

Returns a copy of the model.

EventEffect.dict(*[, include, exclude, ...])

EventEffect.from_dict(data)

Create an event effect from a dictionary.

EventEffect.from_orm(obj)

EventEffect.json(*[, include, exclude, ...])

EventEffect.model_construct([_fields_set])

Creates a new instance of the Model class with validated data.

EventEffect.model_copy(*[, update, deep])

!!! abstract "Usage Documentation"

EventEffect.model_dump(*[, mode, include, ...])

!!! abstract "Usage Documentation"

EventEffect.model_dump_json(*[, indent, ...])

!!! abstract "Usage Documentation"

EventEffect.model_json_schema([by_alias, ...])

Generates a JSON schema for a model class.

EventEffect.model_parametrized_name(params)

Compute the class name for parametrizations of generic classes.

EventEffect.model_post_init(context, /)

Override this method to perform additional initialization after __init__ and model_construct.

EventEffect.model_rebuild(*[, force, ...])

Try to rebuild the pydantic-core schema for the model.

EventEffect.model_validate(obj, *[, strict, ...])

Validate a pydantic model instance.

EventEffect.model_validate_json(json_data, *)

!!! abstract "Usage Documentation"

EventEffect.model_validate_strings(obj, *[, ...])

Validate the given object with string data against the Pydantic model.

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

EventEffect.parse_obj(obj)

EventEffect.parse_raw(b, *[, content_type, ...])

EventEffect.schema([by_alias, ref_template])

EventEffect.schema_json(*[, by_alias, ...])

EventEffect.to_dict()

Convert the event effect to a dictionary.

EventEffect.update_forward_refs(**localns)

EventEffect.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.

basis

effect_size

dims