Join the newly launched
Discord community for real-time discussions, peer support, and direct interaction with the Meridian team!
meridian.model.adstock_hill.HillTransformer
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
用於計算媒體的 Hill 轉換的類別。
沿用自:AdstockHillTransformer
meridian.model.adstock_hill.HillTransformer(
ec: tf.Tensor, slope: tf.Tensor
)
ARG |
ec
|
尺寸為 [..., n_media_channels] 的 Tensor。批次維度
(...) 為選用項目,但若包含批次維度,則必須一併提供
與 ec 的批次尺寸相符。
|
slope
|
尺寸為 [..., n_media_channels] 的 Tensor。批次維度
(...) 為選用項目,但若包含批次維度,則必須一併提供
與 slope 的批次尺寸相符。
|
方法
forward
查看原始碼
forward(
media: tf.Tensor
) -> tf.Tensor
計算指定 media
張量的 Hill 轉換。
計算 Hill 函式的結果,計算數值減弱
媒體效果傳回的結果
ARG |
media
|
尺寸為 [..., n_geos, n_media_times,
n_media_channels] 的 Tensor。批次維度 (...) 是選用項目,如果是批次維度,則為選用項目
維度,必須與 slope 的批次維度相符
和 ec 。即使 slope ,媒體也不必設定批次尺寸
和 ec 則包含批次維度
|
傳回 |
搭載尺寸 [..., n_geos, n_media_times, n_media_channels] 的 Tensor
代表 Hill 轉換的媒體
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-10 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-11-10 (世界標準時間)。"],[],["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"],null,[]]