View source on GitHub
|
Stores parameters needed for processing a model into MarketingAnalysiss.
Inherits From: DatedSpec
schema.processors.marketing_processor.MarketingAnalysisSpec(
start_date: (datetime.date | None) = None,
end_date: (datetime.date | None) = None,
date_interval_tag: str = '',
*,
media_summary_spec: (schema.processors.marketing_processor.MediaSummarySpec | None) = None,
incremental_outcome_spec: (schema.processors.marketing_processor.IncrementalOutcomeSpec | None) = None,
response_curve_spec: schema.processors.marketing_processor.ResponseCurveSpec = dataclasses.field(default_factory=ResponseCurveSpec),
confidence_level: float = constants.DEFAULT_CONFIDENCE_LEVEL
)
Either media_summary_spec or incremental_outcome_spec must be provided,
but not both.
Methods
resolver
resolver(
time_coordinates: tc.TimeCoordinates
) -> 'DatedSpecResolver'
Returns a date resolver for this spec, with the given Meridian model.
validate
validate()
Overrides the Spec.validate() method to check that dates are valid.
__eq__
__eq__(
other
)
Return self==value.
Class Variables | |
|---|---|
| confidence_level |
0.9
|
| date_interval_tag |
''
|
| end_date |
None
|
| incremental_outcome_spec |
None
|
| media_summary_spec |
None
|
| start_date |
None
|
View source on GitHub