| DeconvDLModel-class | R Documentation |
The DeconvDLModel object stores all the information
related to deep neural network models. It consists of the trained model, the
training history, and the predictions on test data. After running
calculateEvalMetrics, it is possible to find the performance
evaluation of the model on test data (see ?calculateEvalMetrics
for details).
The steps related to Deep Learning are carried out using the keras and
tensorflow packages, which use the R6 classes system. If you want to
save the DeconvDLModel object as an RDS file,
SpatialDDLS provides a saveRDS generic function that transforms
the R6 object containing the trained model into a native valid R object.
Specifically, the model is converted into a list with the architecture of the
network and the weights learned during training, which is the minimum
information needed to use the model as a predictor. If you want to keep the
optimizer state, see ?saveTrainedModelAsH5. If you want to
store either the DeconvDLModel or the
SpatialDDLS objects on disk as RDA files, see
?preparingToSave.
modelTrained deep neural network. This slot can contain an R6
keras.engine.sequential.Sequential object or a list with two
elements: the architecture of the model and the resulting weights after
training.
training.historyList with the evolution of the selected metrics during training.
test.metricsPerformance of the model on test data.
test.predPredicted cell type proportions on test data.
cell.typesVector with cell types considered by the model.
featuresVector with features (genes) considered by the model. These features will be used for subsequent predictions.
test.deconv.metricsPerformance of the model on test data by cell type.
This slot is generated by the calculateEvalMetrics function
(see ?calculateEvalMetrics for more details).
interpret.gradientsGradients for interpretation. SpatialDDLS
provides some functions to better understand prediction made by the model
(see ?interGradientsDL for more details). This slot is a list
of either one or two elements: gradients of either the loss function or the
predicted class with respect to the input variables using pure (only one
cell type) mixed transcriptional profiles. These gradients can be
interpreted as to what extent the model is using these variables to predict
each cell type proportions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.