Join the newly launched Discord
community for real-time discussions, peer support, and direct interaction with the Meridian team!
Module: meridian.model.adstock_hill
Stay organized with collections
Save and categorize content based on your preferences.
Function definitions for Adstock and Hill calculations.
Classes
class AdstockDecaySpec
: Specification for each channel's adstock decay function.
class AdstockHillTransformer
: Abstract class to compute the Adstock and Hill transformation of media.
class AdstockTransformer
: Class to compute the Adstock transformation of media.
class HillTransformer
: Class to compute the Hill transformation of media.
Functions
compute_decay_weights(...)
: Computes decay weights using geometric and/or binomial decay.
transform_non_negative_reals_distribution(...)
: Transforms a distribution with support on [0, infinity)
to (0, 1]
.
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."],[[["\u003cp\u003eThis page contains function definitions for Adstock and Hill calculations related to media transformation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAdstockHillTransformer\u003c/code\u003e class serves as an abstract class for computing both Adstock and Hill transformations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAdstockTransformer\u003c/code\u003e class is specifically designed for calculating the Adstock transformation of media.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eHillTransformer\u003c/code\u003e class is used to compute the Hill transformation of media.\u003c/p\u003e\n"]]],[],null,["\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/meridian/blob/v1.2.0/meridian/model/adstock_hill.py) |\n\nFunction definitions for Adstock and Hill calculations.\n\nClasses\n\n[`class AdstockDecaySpec`](../../meridian/model/adstock_hill/AdstockDecaySpec.md): Specification for each channel's adstock decay function.\n\n[`class AdstockHillTransformer`](../../meridian/model/adstock_hill/AdstockHillTransformer.md): Abstract class to compute the Adstock and Hill transformation of media.\n\n[`class AdstockTransformer`](../../meridian/model/adstock_hill/AdstockTransformer.md): Class to compute the Adstock transformation of media.\n\n[`class HillTransformer`](../../meridian/model/adstock_hill/HillTransformer.md): Class to compute the Hill transformation of media.\n\nFunctions\n\n[`compute_decay_weights(...)`](../../meridian/model/adstock_hill/compute_decay_weights.md): Computes decay weights using geometric and/or binomial decay.\n\n[`transform_non_negative_reals_distribution(...)`](../../meridian/model/adstock_hill/transform_non_negative_reals_distribution.md): Transforms a distribution with support on `[0, infinity)` to `(0, 1]`."]]