Join the newly launched
Discord community for real-time discussions, peer support, and direct interaction with the Meridian team!
schema.processors.marketing_processor.IncrementalOutcomeSpec
Stay organized with collections
Save and categorize content based on your preferences.
Stores parameters needed for processing a model into MarketingAnalysiss.
schema.processors.marketing_processor.IncrementalOutcomeSpec(
*,
aggregate_times: bool = True,
new_data: (analyzer.DataTensors | None) = None,
media_selected_times: (Sequence[bool] | None) = None,
include_non_paid_channels: bool = False
)
Attributes |
aggregate_times
|
Boolean. If True, the media summary metrics are
aggregated over time. Defaults to True.
|
new_data
|
Optional DataTensors container with optional tensors: media,
reach, frequency, organic_media, organic_reach,
organic_frequency, non_media_treatments and revenue_per_kpi. If
None, the incremental outcome is calculated using the InputData
provided to the Meridian object. If new_data is provided, the
incremental outcome is calculated using the new tensors in new_data and
the original values of the remaining tensors. For example,
incremental_outcome(new_data=DataTensors(media=new_media) computes the
incremental outcome using new_media and the original values of reach,
frequency, organic_media, organic_reach, organic_frequency,
non_media_treatments and revenue_per_kpi. If any of the tensors in
new_data is provided with a different number of time periods than in
InputData, then all tensors must be provided with the same number of
time periods.
|
media_selected_times
|
Optional list containing booleans with length equal to
the number of time periods in new_data, if provided. If new_data is
provided, media_selected_times can select any subset of time periods in
new_data. If new_data is not provided, media_selected_times selects
from model's original media data and its length must be equal to the
number of time periods in the model's original media data.
|
include_non_paid_channels
|
Boolean. If True, the incremental outcome
includes non-paid channels. Defaults to False.
|
Methods
validate
View source
validate()
Checks whether each parameter in the Spec has a valid value.
| Raises |
ValueError
|
If any parameter in the Spec has an invalid value.
|
__eq__
__eq__(
other
)
Return self==value.
Class Variables |
|
aggregate_times
|
True
|
|
include_non_paid_channels
|
False
|
|
media_selected_times
|
None
|
|
new_data
|
None
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-09 UTC."],[],[]]