Join the newly launched Discord
community for real-time discussions, peer support, and direct interaction with the Meridian team!
meridian.model.media.OrganicRfTensors
Stay organized with collections
Save and categorize content based on your preferences.
Container for Reach and Frequency (RF) organic media tensors.
meridian
.
model
.
media
.
OrganicRfTensors
(
organic_reach
:
(
meridian
.
backend
.
Tensor
|
None
)
=
None
,
organic_frequency
:
(
meridian
.
backend
.
Tensor
|
None
)
=
None
,
organic_reach_transformer
:
(
meridian
.
model
.
transformers
.
MediaTransformer
|
None
)
=
None
,
organic_reach_scaled
:
(
meridian
.
backend
.
Tensor
|
None
)
=
None
)
organic_reach_transformer
A MediaTransformer
to scale organic RF tensors
using the model's organic RF data.
An organic reach tensor normalized by population and
by the median value.
Methods
__eq__
__eq__
(
other
)
Return self==value.
organic_reach_transformer
None
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-05 UTC.
[[["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 2025-09-05 UTC."],[[["\u003cp\u003e\u003ccode\u003eOrganicRfTensors\u003c/code\u003e is a container for organic reach and frequency (RF) media tensors, which include data like organic reach and frequency.\u003c/p\u003e\n"],["\u003cp\u003eThe class uses tensors for storing organic reach data, with attributes including raw, scaled, and counterfactual versions of organic reach.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMediaTransformer\u003c/code\u003e is used by the \u003ccode\u003eorganic_reach_transformer\u003c/code\u003e attribute for scaling the organic RF tensors in this class.\u003c/p\u003e\n"],["\u003cp\u003eThe attributes in this class contain tensors that are constructed from \u003ccode\u003eInputData\u003c/code\u003e objects, including \u003ccode\u003eorganic_reach\u003c/code\u003e and \u003ccode\u003eorganic_frequency\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOrganicRfTensors\u003c/code\u003e provides a method, \u003ccode\u003e__eq__\u003c/code\u003e, for comparing instances of the class, and has several class variables initialized to \u003ccode\u003eNone\u003c/code\u003e, such as \u003ccode\u003eorganic_reach\u003c/code\u003e and \u003ccode\u003eorganic_frequency\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `OrganicRfTensors` class holds organic media data as tensors, including `organic_reach` and `organic_frequency`. It handles scaling using a `MediaTransformer` to create `organic_reach_scaled`. The class can also store counterfactual values in `organic_reach_counterfactual` and `organic_reach_counterfactual_scaled`. The class has an `__eq__` method to compare objects. Several class variables are defined and they default to `None`, including the `organic_frequency` and `organic_reach`.\n"],null,["\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/meridian/blob/v1.2.0/meridian/model/media.py#L318-L334) |\n\nContainer for Reach and Frequency (RF) organic media tensors. \n\n meridian.model.media.OrganicRfTensors(\n organic_reach: (../../../meridian/backend/Tensor.md | None) = None,\n organic_frequency: (../../../meridian/backend/Tensor.md | None) = None,\n organic_reach_transformer: (../../../meridian/model/transformers/MediaTransformer.md | None) = None,\n organic_reach_scaled: (../../../meridian/backend/Tensor.md | None) = None\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ||\n|-----------------------------|------------------------------------------------------------------------------------------------------------------------------|\n| `organic_reach` | A tensor constructed from [`InputData.organic_reach`](../../../meridian/data/input_data/InputData.md#organic_reach). |\n| `organic_frequency` | A tensor constructed from [`InputData.organic_frequency`](../../../meridian/data/input_data/InputData.md#organic_frequency). |\n| `organic_reach_transformer` | A `MediaTransformer` to scale organic RF tensors using the model's organic RF data. |\n| `organic_reach_scaled` | An organic reach tensor normalized by population and by the median value. |\n\n\u003cbr /\u003e\n\nMethods\n\n`__eq__` \n\n __eq__(\n other\n )\n\nReturn self==value.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Class Variables ||\n|---------------------------|--------|\n| organic_frequency | `None` |\n| organic_reach | `None` |\n| organic_reach_scaled | `None` |\n| organic_reach_transformer | `None` |\n\n\u003cbr /\u003e"]]