- restore_model(path, name=None, datapath=None)[source]#
Restore a model and return it.
Restore a model saved by the
str) – Path to the file to restore the model from.
name (optional) – If specified, the model is renamed to this name.
A new model created from the file.
Deprecated since version 0.18.0: Use
read_model()for reading and