Join the newly launched
Discord community for real-time discussions, peer support, and direct interaction with the Meridian team!
schema.serde.meridian_serde.load_meridian
Stay organized with collections
Save and categorize content based on your preferences.
Load the model object from an MmmKernel proto file path.
schema.serde.meridian_serde.load_meridian(
file_path: str,
distribution_function_registry: (schema.serde.distribution.FunctionRegistry | None) = None,
eda_function_registry: (schema.serde.distribution.FunctionRegistry | None) = None,
force_deserialization=False
) -> model.Meridian
Supported file types |
- binpb (wire-format proto)
- txtpb (text-format proto)
- textproto (text-format proto)
|
Args |
file_path
|
File path to load a serialized model object from.
|
distribution_function_registry
|
A lookup table that maps string keys to
custom functions to be used as parameters in various tfp.distributions.
|
eda_function_registry
|
A lookup table that maps string keys to custom
functions to be used in EDASpec.
|
force_deserialization
|
If True, bypasses the safety check that validates
whether functions within a function registry have changed after
serialization. Use with caution. This should only be used if you have
intentionally modified a custom function and are confident that the
changes will not affect the deserialized model. A safer alternative is to
first deserialize the model with the original functions and then serialize
it with the new ones.
|
Returns |
|
Model object loaded from the file path.
|
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-11-13 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-11-13 UTC."],[],[]]