multinom2poisson | R Documentation |
This function recovers parameter estimates of the Poisson non-negative matrix factorization (NMF) given parameter estimates for a multinomial topic model.
multinom2poisson(fit, X)
fit |
An object of class “multinom_topic_model_fit”,
such as an output from |
X |
Optional n x m matrix of counts, or pseudocounts. It can
be a sparse matrix (class |
The return value is the list fit
, in which matrices
fit$F
and fit$L
specify the factors and loadings in
the Poisson non-negative matrix factorization; specifically,
the counts matrix is modeled by the low-rank matrix product
tcrossprod(fit$L,fit$F)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.