
Calculate evaluation metrics on test mixed transcriptional profiles
Source:R/evalMetrics.R
      calculateEvalMetrics.RdCalculate evaluation metrics on test mixed transcriptional profiles. By
default, absolute error (AbsErr), proportional absolute error
(ppAbsErr), squared error (SqrErr), and proportional squared
error (ppSqrErr) are calculated for each test mixed profile. In
addition, each of these metrics is aggregated according to three criteria:
cell type (CellType), probability bins in ranges of 0.1 (pBin),
and number of different cell types present in the spot (nCellTypes).
Arguments
- object
 SpatialDDLSobject with a trained model intrained.modelslot and the actual cell proportions of test mixed profiles inprob.cell.typesslot.
Value
A SpatialDDLS object with is a
DeconvDLModel object. The calculated metrics are
stored in the test.deconv.metrics slot of the
DeconvDLModel object.