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
A lookup table that maps string keys to
custom functions to be used as parameters in various
tfp.distributions
.A lookup table that maps string keys to custom
functions to be used in
EDASpec
.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.



