loadTrainedModelFromH5 {SpatialDDLS}R Documentation

Load from an HDF5 file a trained deep neural network model into a SpatialDDLS object

Description

Load from an HDF5 file a trained deep neural network model into a SpatialDDLS object. Note that HDF5 file must be a valid trained model (keras object).

Usage

loadTrainedModelFromH5(object, file.path, reset.slot = FALSE)

Arguments

object

SpatialDDLS object with trained.model slot.

file.path

Valid file path where the model are stored.

reset.slot

Deletes trained.slot if it already exists. A new DeconvDLModel object will be formed, but will not contain other slots (FALSE by default).

Value

SpatialDDLS object with trained.model slot with the new keras DNN model incorporated.

See Also

trainDeconvModel saveTrainedModelAsH5


[Package SpatialDDLS version 1.0.2 Index]