View source: R/functions_EM_helper.R
get_maximand | R Documentation |
get maximand. Use this to check if the EM keeps incrasing maximand
get_maximand(
.D_train,
.D_test,
.E,
.X_c_train,
.X_c_test,
.X_b_train,
.X_b_test,
.class_prob,
.word_prob,
.mu = NA,
.psi = NA,
.sig = NA,
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 |
.class_prob |
output of get_class_prob() |
.word_prob |
output of get_word_prob() |
.supervise |
T if supervised. F is unsupervised |
a scalar of the value of maximand in each EM iteration
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.