E_step: E step of the EM algorithm

View source: R/functions_EM_helper.R

E_stepR Documentation

E step of the EM algorithm

Description

E step of the EM algorithm

Usage

E_step(
  .D_test,
  .X_c = NA,
  .X_b = NA,
  .class_prob,
  .word_prob,
  .mu = NA,
  .sig = NA,
  .psi = NA
)

Arguments

.D_test

document term matrix for the test documents

.class_prob

log of the class probability

.word_prob

log of the word probability

Value

a matrix of the log probability of each doc having each class dimension is length(D_test) by 2


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