Create a table summarizing the results of fitting one or more Poisson non-negative matrix factorizations or multinomial topic models.
compare_fits(fits)
An object of class "poisson_nmf_fit"
or
"multinom_topic_model_fit"
, or a non-empty, named list in
which all list elements are Poisson NMF model fits or all
multinomial topic model fits.
A data frame with one row per element of fits
, and
with the following columns:
The rank of the matrix factorization.
The log-likelihood (either Poisson NMF or multinomial topic model likelihood) achieved at the last model fitting update.
For Poisson NMF model fits only, the deviance achieved at the last model fitting update.
The maximum residual of the Karush-Kuhn-Tucker (KKT) system achieved at the last model fitting update; small values indicate that the solution is close to a local maximum, or stationary point, of the likelihood.
The improvement in the log-likelihood relative to the model fit with the smallest log-likelihood.
The improvement in the deviance relative to the model fit with the largest deviance.
The rate of nonzeros in the factors matrix, as
determined by control$zero.threshold
.
The rate of nonzeros in the loadings matrix, as
determined by control$zero.threshold
.
The number of loadings and/or factor updates performed.
The total runtime (in s) of the model fitting updates.