scenarioplanner.mmm_ui_proto_generator.create_mmm_ui_data_proto
Stay organized with collections
Save and categorize content based on your preferences.
Creates Mmm proto for the Meridian Scenario Planner UI (Looker Studio).
scenarioplanner.mmm_ui_proto_generator.create_mmm_ui_data_proto(
mmm: model.Meridian,
specs: Sequence[SpecType],
model_id: str = '',
time_breakdown_generators: Collection[type[date_range_bucketing.DateRangeBucketer]] = _DATE_RANGE_GENERATORS
) -> mmm_pb.Mmm
Currently, it only accepts specs for Model Fit, Marketing Analysis, and Budget
Optimization, but not stand-alone Reach Frequency Optimization specs.
Reach Frequency Optimization spec will be derived from the Budget Optimization
spec; this is done so that we can structurally pair them.
Args |
mmm
|
A trained Meridian model. A trained model has its posterior
distributions already sampled.
|
specs
|
A sequence of specs that specify the analyses to run on the model.
|
model_id
|
An optional model identifier.
|
time_breakdown_generators
|
A list of generators that break down the given
specs by automatically generated time buckets. Currently, this time period
breakdown is only done on Marketing Analysis specs and Budget Optimization
specs. All other specs are processed in their original forms. The set of
default bucketers break down sub-specs with the following time periods:
[All (original spec's time period), Yearly, Quarterly, Monthly]
|
Returns |
|
A proto containing the model kernel at rest and its analysis results given
user specs.
|
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 2026-03-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 2026-03-05 UTC."],[],[]]