View source on GitHub
|
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].
View source on GitHub