Calculate evaluation metrics on test mixed transcriptional profiles
Source:R/evalMetrics.R
calculateEvalMetrics.Rd
Calculate 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
SpatialDDLS
object with a trained model intrained.model
slot and the actual cell proportions of test mixed profiles inprob.cell.types
slot.
Value
A SpatialDDLS
object with is a
DeconvDLModel
object. The calculated metrics are
stored in the test.deconv.metrics
slot of the
DeconvDLModel
object.