问题
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