modelx.read_model#

read_model(model_path, name=None)[source]#

Read model from files.

Read model form a folder(directory) tree or a zip file model_path. The model must be saved either by write_model(), Model.write, write_model() or Model.zip.

Added in version 0.0.22.

Parameters:
  • model_path (str) – Path to a model folder or a zipped model file.

  • name (str, optional) – Model name to overwrite the saved name.

Returns:

A Model object constructed from the files.