get_maximand: get maximand. Use this to check if the EM keeps incrasing...

View source: R/functions_EM_helper.R

get_maximandR Documentation

get maximand. Use this to check if the EM keeps incrasing maximand

Description

get maximand. Use this to check if the EM keeps incrasing maximand

Usage

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
)

Arguments

.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

Value

a scalar of the value of maximand in each EM iteration


activetext/activeR documentation built on May 31, 2024, 10:21 a.m.