poisson2multinom {fastTopics} | R Documentation |
Recover Multinomial Topic Model Fit from Poisson NMF fit
Description
This function recovers parameter estimates of the multinomial topic model given parameter estimates for a Poisson non-negative matrix factorization (NMF).
Usage
poisson2multinom(fit)
Arguments
fit |
An object of class “poisson_nmf_fit”, such as an
output from |
Value
The return value is the list fit
, in which
fit$F
and fit$L
are the parameters of the multinomial
topic model; specifically, fit$L[i,]
gives the topic
probabilities for sample or document i, and fit$F[,k]
gives
the term probabilities for topic k. An additional vector
fit$s
of length n is returned giving the "size factors".