finesse.model.load

finesse.model.load(path: Path)[source]

Load a model from a file. This uses the dill library to unpickle the model. This is not gauraunteed to work across python versions or across diferrent platforms and systems. It should only be used to load and save models within the same python environment and not for long term storage.

Parameters
pathPath

The path to load the model from.

Returns
Model

The loaded model.

Examples

>>> model.save('mymodel.pkl')
>>> loaded_model = finesse.model.load('mymodel.pkl')