Join the newly launched
Discord community for real-time discussions, peer support, and direct interaction with the Meridian team!
meridian.model.adstock_hill.AdstockDecaySpec
Stay organized with collections
Save and categorize content based on your preferences.
Specification for each channel's adstock decay function.
meridian.model.adstock_hill.AdstockDecaySpec(
media: (str | Sequence[str]) = constants.GEOMETRIC_DECAY,
rf: (str | Sequence[str]) = constants.GEOMETRIC_DECAY,
organic_media: (str | Sequence[str]) = constants.GEOMETRIC_DECAY,
organic_rf: (str | Sequence[str]) = constants.GEOMETRIC_DECAY
)
This class contains the adstock decay function(s) to use for each channel
that the adstock transformation is applied to.
Attributes |
media
|
A string or sequence of strings specifying the adstock function(s)
to use for media channels.
|
rf
|
A string or sequence of strings specifying the adstock function(s)
to use for reach and frequency channels.
|
organic_media
|
A string or sequence of strings specifying the adstock
function(s) to use for organic media channels.
|
organic_rf
|
A string or sequence of strings specifying the adstock
function(s) to use for organic reach and frequency channels.
|
Methods
from_consistent_type
View source
@classmethod
from_consistent_type(
consistent_decay_function: str = constants.GEOMETRIC_DECAY
) -> 'AdstockDecaySpec'
Create an AdstockDecaySpec
with the same decay function for all channels.
Arguments |
consistent_decay_function
|
A string denoting the adstock decay function
to use for all channels that the Adstock transformation is applied to.
|
Raises |
ValueError
|
If consistent_decay_function is not 'geometric' or
'binomial'.
|
__eq__
__eq__(
other
)
Return self==value.
Class Variables |
media
|
'geometric'
|
organic_media
|
'geometric'
|
organic_rf
|
'geometric'
|
rf
|
'geometric'
|
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-09-05 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-09-05 UTC."],[],[],null,[]]