save()#
- ContinuousModel.save(savefile, overwrite=False)#
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 specifiedsavefile
already exists, overwrite the file. IfFalse
(default) and the specifiedsavefile
already exists, raise an error.