load (pmrf.load)

load(source)[source]

Load a ParamRF model from a file or file-like object.

Parameters:

source (str or BinaryIO) – The path to the saved model file or an open file-like object containing the model data.

Returns:

The deserialized ParamRF model instance.

Return type:

Model

Raises:

TypeError – If the root model or any nested submodels fail to load and silently degrade into dictionaries (usually due to moved classes).