View source: R/functions_EM_helper.R
get_class_prob | R Documentation |
get weighted log of class probability
get_class_prob(.D_train, .D_test, .E, .n_class, .lambda, .supervise)
.D_train |
document term matrix for the training documents |
.D_test |
document term matrix for the test documents |
.E |
output of E step for all documents |
.n_class |
number of classes |
.lambda |
weight |
supervise |
T if supervise, F is unsupervise |
a matrix of log likelihood of a class(nrow = 2, ncol = # of document)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.