加入新推出的
Discord 社区,展开实时讨论,获得同行支持,并直接与 Meridian 团队互动!
meridian.model.model.save_mmm
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将模型对象保存到 pickle
文件路径。
meridian.model.model.save_mmm(
mmm: meridian.model.model.Meridian
,
file_path: str
)
警告:无法保证此函数的二进制文件输出在未来的兼容性。建议使用与保存模型时所用的相同版本的库来调用 load_mmm()
。
实参 |
mmm
|
要保存的模型对象。
|
file_path
|
用于保存序列化模型对象的文件路径。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-13。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-02-13。"],[],["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,[]]