Join the newly launched
Discord community for real-time discussions, peer support, and direct interaction with the Meridian team!
meridian.model.adstock_hill.HillTransformer
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Class untuk menghitung transformasi Hill media.
Mewarisi Dari: AdstockHillTransformer
meridian.model.adstock_hill.HillTransformer(
ec: tf.Tensor, slope: tf.Tensor
)
Args |
ec
|
Tensor dengan dimensi [..., n_media_channels] . Dimensi batch
(...) bersifat opsional, tetapi jika dimensi batch disertakan, dimensi tersebut harus
cocok dengan dimensi batch ec .
|
slope
|
Tensor dengan dimensi [..., n_media_channels] . Dimensi batch
(...) bersifat opsional, tetapi jika dimensi batch disertakan, dimensi tersebut harus
cocok dengan dimensi batch slope .
|
Metode
forward
Lihat sumber
forward(
media: tf.Tensor
) -> tf.Tensor
Menghitung transformasi Hill dari tensor media
tertentu.
Menghitung hasil untuk fungsi Hill, yang memperhitungkan penurunan
pengembalian efek media.
Args |
media
|
Tensor dengan dimensi [..., n_geos, n_media_times,
n_media_channels] . Dimensi batch (...) bersifat opsional, tetapi jika batch
dimensi disertakan, dimensi tersebut harus sesuai dengan dimensi batch slope
dan ec . Media tidak harus memiliki dimensi batch meskipun slope
dan ec berisi dimensi batch.
|
Hasil |
Tensor dengan dimensi [..., n_geos, n_media_times, n_media_channels]
yang mewakili media yang ditransformasikan oleh bukit.
|
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-10 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-11-10 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"],null,[]]