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.
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.
[[["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 2026-05-05 UTC."],[],["The `HillTransformer` class computes the Hill transformation of media data, accounting for diminishing returns. It takes two main tensors as input: `ec` and `slope`, both with optional batch dimensions matching each other. The `forward` method applies the Hill function to a `media` tensor, which may include batch, geo, time, and media channel dimensions. This method returns a tensor with the same geo, time, and media channel dimensions as the input, representing the Hill-transformed media.\n"]]