multinom2poisson {fastTopics} | R Documentation |
Recover Poisson NMF Fit from Multinomial Topic Model Fit
Description
This function recovers parameter estimates of the Poisson non-negative matrix factorization (NMF) given parameter estimates for a multinomial topic model.
Usage
multinom2poisson(fit, X)
Arguments
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 |
Value
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)
.