View source: R/functions_EM_helper.R
get_word_prob | R Documentation |
get log likelihood of a document
get_word_prob(.D, .E, .beta = NA, .fixed_words = NULL)
.D |
document term matrix |
.E |
labels for all documents |
.beta |
prior parameter for eta |
.fixed_words |
matrix of fixed words with class probabilities, where ncol is the number of classes. |
a matrix of word probability(nrow = 2, ncol = V (size of vocab))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.