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 from path.

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

backup()

Deprecated since version 0.18.0: Use read_model() for reading and write_model() or zip_model() for writing.