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()