Join the newly launched Discord
community for real-time discussions, peer support, and direct interaction with the Meridian team!
Module: meridian.model.transformers
Stay organized with collections
Save and categorize content based on your preferences.
Contains data transformers for various inputs of the Meridian model.
Classes
class CenteringAndScalingTransformer
: Applies centering and scaling transformations to a tensor.
class KpiTransformer
: Contains forward and inverse KPI transformation methods.
class MediaTransformer
: Contains forward and inverse media transformation methods.
class TensorTransformer
: Abstract class for data transformers.
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\u003eThis page documents the data transformers used within the Meridian model.\u003c/p\u003e\n"],["\u003cp\u003eThe content details four primary classes for data transformation: \u003ccode\u003eCenteringAndScalingTransformer\u003c/code\u003e, \u003ccode\u003eKpiTransformer\u003c/code\u003e, \u003ccode\u003eMediaTransformer\u003c/code\u003e, and \u003ccode\u003eTensorTransformer\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCenteringAndScalingTransformer\u003c/code\u003e handles centering and scaling operations on tensors.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eKpiTransformer\u003c/code\u003e and \u003ccode\u003eMediaTransformer\u003c/code\u003e are designed for KPI and media transformations, respectively, including forward and inverse methods.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTensorTransformer\u003c/code\u003e is the abstract class for data transformers within the Meridian Model.\u003c/p\u003e\n"]]],[],null,["\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/meridian/blob/v1.2.0/meridian/model/transformers.py) |\n\nContains data transformers for various inputs of the Meridian model.\n\nClasses\n\n[`class CenteringAndScalingTransformer`](../../meridian/model/transformers/CenteringAndScalingTransformer.md): Applies centering and scaling transformations to a tensor.\n\n[`class KpiTransformer`](../../meridian/model/transformers/KpiTransformer.md): Contains forward and inverse KPI transformation methods.\n\n[`class MediaTransformer`](../../meridian/model/transformers/MediaTransformer.md): Contains forward and inverse media transformation methods.\n\n[`class TensorTransformer`](../../meridian/model/transformers/TensorTransformer.md): Abstract class for data transformers."]]