meridian.model.adstock_hill.HillTransformer

Class to compute the Hill transformation of media.

Inherits From: AdstockHillTransformer

ec
Tensor with dimensions [..., n_media_channels] . Batch dimensions (...) are optional, but if batch dimensions are included, they must match the batch dimensions of ec .
slope
Tensor with dimensions [..., n_media_channels] . Batch dimensions (...) are optional, but if batch dimensions are included, they must match the batch dimensions of slope .

Methods

forward

View source

Computes the Hill transformation of a given media tensor.

Calculates results for the Hill function, which accounts for the diminishing returns of media effects.

Args

media
Tensor with dimensions [..., n_geos, n_media_times, n_media_channels] . Batch dimensions (...) are optional, but if batch dimensions are included, they must match the batch dimensions of slope and ec . Media is not required to have batch dimensions even if slope and ec contain batch dimensions.

Returns
Tensor with dimensions [..., n_geos, n_media_times, n_media_channels] representing Hill-transformed media.

Design a Mobile Site
View Site in Mobile | Classic
Share by: