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