
Save a trained SpatialDDLS deep neural network model to
disk as an HDF5 file
Source: R/utils.R
saveTrainedModelAsH5.RdSave a trained SpatialDDLS deep neural network model to
disk as an HDF5 file. Note that this function does not save the
DeconvDLModel object, only the trained keras
model. This is the alternative to the saveRDS and
preparingToSave functions if you want to keep the state of the
optimizer.
Arguments
- object
SpatialDDLSobject withtrained.modelslot.- file.path
Valid file path where to save the model to.
- overwrite
Overwrite file if it already exists.