MMM.__init__#
- MMM.__init__(date_column=FieldInfo(annotation=str, required=True, description='Column name of the date variable.'), channel_columns=FieldInfo(annotation=list[str], required=True, description='Column names of the media channel variables.', metadata=[MinLen(min_length=1)]), target_column=FieldInfo(annotation=str, required=True, description='The name of the target column.'), adstock=FieldInfo(annotation=AdstockTransformation, required=True, description='Type of adstock transformation to apply.', metadata=[InstanceOf()]), saturation=FieldInfo(annotation=SaturationTransformation, required=True, description='The saturation transformation to apply to the channel data.', metadata=[InstanceOf()]), time_varying_intercept=False, time_varying_media=False, dims=FieldInfo(annotation=Union[tuple[str, ...], NoneType], required=False, default=None, description='Additional dimensions for the model.'), scaling=FieldInfo(annotation=Union[Annotated[Scaling, InstanceOf], dict, NoneType], required=False, default=None, description='Scaling configuration for the model.'), model_config=FieldInfo(annotation=Union[dict, NoneType], required=False, default=None, description='Configuration settings for the model.'), sampler_config=FieldInfo(annotation=Union[dict, NoneType], required=False, default=None, description='Configuration settings for the sampler.'), control_columns=None, yearly_seasonality=None, adstock_first=True)[source]#
Define the constructor method.