Join the newly launched Discord
community for real-time discussions, peer support, and direct interaction with the Meridian team!
meridian.model.model.load_mmm
Stay organized with collections
Save and categorize content based on your preferences.
Load the model object from a pickle
file path.
meridian
.
model
.
model
.
load_mmm
(
file_path
:
str
)
->
meridian
.
model
.
model
.
Meridian
WARNING: There is no guarantee for backward compatibility of the binary file
input of this function. We recommend using load_mmm()
with the same
version of the library that was used to save the model's pickled file.
File path to load a pickled model object from.
Model object loaded from the file path.
If file_path
does not exist.
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\u003eThe \u003ccode\u003eload_mmm\u003c/code\u003e function loads a model object from a specified \u003ccode\u003epickle\u003c/code\u003e file path.\u003c/p\u003e\n"],["\u003cp\u003eThe function's binary file input does not guarantee backward compatibility, so the same library version is recommended for loading and saving.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003efile_path\u003c/code\u003e argument defines the location of the pickled model object file to load.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns the loaded model object.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eFileNotFoundError\u003c/code\u003e will be raised if the provided \u003ccode\u003efile_path\u003c/code\u003e does not exist.\u003c/p\u003e\n"]]],["The function `load_mmm` loads a model object from a specified `pickle` file path. It takes the file path as input and returns the loaded model object. The function raises a `FileNotFoundError` if the file path doesn't exist. It is recommended to use the same library version for loading as was used for saving, as there's no backward compatibility guarantee for the binary file format.\n"],null,["\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/meridian/blob/v1.2.0/meridian/model/model.py#L1684-L1705) |\n\nLoad the model object from a `pickle` file path. \n\n meridian.model.model.load_mmm(\n file_path: str\n ) -\u003e ../../../meridian/model/model/Meridian.md\n\nWARNING: There is no guarantee for backward compatibility of the binary file\ninput of this function. We recommend using `load_mmm()` with the same\nversion of the library that was used to save the model's pickled file.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|-------------|------------------------------------------------|\n| `file_path` | File path to load a pickled model object from. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|-----------------------------------------|\n| `mmm` | Model object loaded from the file path. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ||\n|---------------------|--------------------------------|\n| `FileNotFoundError` | If `file_path` does not exist. |\n\n\u003cbr /\u003e"]]