Join the newly launched Discord
community for real-time discussions, peer support, and direct interaction with the Meridian team!
meridian.model.model.save_mmm
Stay organized with collections
Save and categorize content based on your preferences.
Save the model object to a pickle
file path.
meridian
.
model
.
model
.
save_mmm
(
mmm
:
meridian
.
model
.
model
.
Meridian
,
file_path
:
str
)
WARNING: There is no guarantee for future compatibility of the binary file
output of this function. We recommend using load_mmm()
with the same
version of the library that was used to save the model.
File path to save a pickled model object.
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\u003esave_mmm\u003c/code\u003e function saves a Meridian model object to a specified file path using the pickle format.\u003c/p\u003e\n"],["\u003cp\u003eThe function requires two arguments: the model object to be saved (\u003ccode\u003emmm\u003c/code\u003e) and the file path (\u003ccode\u003efile_path\u003c/code\u003e) where the model will be stored.\u003c/p\u003e\n"],["\u003cp\u003eUsers are cautioned that the binary file format is not guaranteed to be compatible across future versions of the library.\u003c/p\u003e\n"],["\u003cp\u003eIt is recommended to use the same version of the library for both saving and loading the model to ensure compatibility.\u003c/p\u003e\n"]]],["The function `save_mmm` saves a model object to a specified file path using the `pickle` format. The function takes two arguments: the model object (`mmm`) and the file path (`file_path`). It outputs a binary file, but future compatibility is not guaranteed. Users are advised to use the same library version for both saving and loading models. The model object to save and the path for the file are essential.\n"],null,["\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/meridian/blob/v1.2.0/meridian/model/model.py#L1666-L1681) |\n\nSave the model object to a `pickle` file path. \n\n meridian.model.model.save_mmm(\n mmm: ../../../meridian/model/model/Meridian.md,\n file_path: str\n )\n\nWARNING: There is no guarantee for future compatibility of the binary file\noutput of this function. We recommend using `load_mmm()` with the same\nversion of the library that was used to save the model.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|-------------|-------------------------------------------|\n| `mmm` | Model object to save. |\n| `file_path` | File path to save a pickled model object. |\n\n\u003cbr /\u003e"]]