save()#

InterpolatedContinuousModel.save(savefile: str, overwrite: bool = False) None#

Serialize the model, saving it in HDF5 format. The model can be recovered with the load() class method.

Parameters
savefilestr

File to save to, with extension .h5 (HDF5).

overwritebool

If True and the specified savefile already exists, overwrite the file. If False (default) and the specified savefile already exists, raise an error.