save()#
- TotalLeastSquaresSolver.save(savefile: str, overwrite: bool = False)[source]#
Serialize the solver, 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.