stephenslab / fastTopics

Fast algorithms for fitting topic models and non-negative matrix factorizations to count data.
https://stephenslab.github.io/fastTopics
Other
77 stars 7 forks source link

Create vignette to illustrate "projection" of samples onto existing F matrix #11

Closed pcarbo closed 3 years ago

pcarbo commented 3 years ago

Procedure to "project" cells onto a previously estimated F matrix: (a) run init_poisson_nmf, in which F is provide as input: (b) run fit_poisson_nmf, setting update.factors = NULL, which will keep F the same up to a column-scaling; and (c) run poisson2multinom to get the topic model. Note that F can be from a multinomial topic model fit or a Poisson NMF fit. (It doesn't matter.)