Save the model in gpflow 2

倖福魔咒の 提交于 2020-05-17 07:46:27

问题


I am trying to save a GPflow model (in GPflow version 2.0).

model = gpflow.models.VGP((X, Y_data), kernel=kernel, likelihood=likelihood, num_latent_gps=1)

Since the gpflow package no longer has a saver module, could anyone help me with an alternative way?


回答1:


There are different ways of saving a GPflow model and the way to do it will depend on your use-case. You can either use TensorFlow's checkpointing (saving the trained weights) or use TensorFlow's SavedModel format (saving weights and parts of the computational graph). You can see examples of both approaches in the intro to GPflow2 notebook.



来源:https://stackoverflow.com/questions/61752016/save-the-model-in-gpflow-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!