load()

load()#

classmethod InterpDiscreteModel.load(loadfile: str, InterpolatorClass: type = None)#

Load a serialized model from an HDF5 file, created previously from the save() method.

Parameters:
loadfilestr

Path to the file where the operator was stored via save().

InterpolatorClasstype

Class for the elementwise interpolation. Must obey the syntax

>>> interpolator = InterpolatorClass(data_points, data_values)
>>> interpolator_evaluation = interpolator(new_data_point)

Not required if the saved operator utilizes a class from scipy.interpolate.

Returns:
op_Operator

Initialized operator object.