Description Usage Arguments Value See Also Examples
Perplexity is a statistical measure of how well a probability model can predict new data. Lower perplexity indicates a better model.
1 2 | ## S3 method for class 'celda_G'
perplexity(counts, celda.mod, new.counts = NULL)
|
counts |
Integer matrix. Rows represent features and columns represent cells. This matrix should be the same as the one used to generate 'celda.mod'. |
celda.mod |
Celda object of class "celda_C" |
new.counts |
A new counts matrix used to calculate perplexity. If NULL, perplexity will be calculated for the 'counts' matrix. Default NULL. |
Numeric. The perplexity for the provided count data and model.
'celda_G()' for clustering features
1 | perplexity = perplexity(celda.G.sim$counts, celda.G.mod)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.