get_word_prob_log: get log likelihood of a document

View source: R/functions_EM_helper.R

get_word_prob_logR Documentation

get log likelihood of a document

Description

get log likelihood of a document

Usage

get_word_prob_log(.C_train, .D_train, .D_test, .E, .n_class, .lambda)

Arguments

.E

output from the E step. Log scale.

.D

document term matrix

.fixed_words

matrix of fixed words with class probabilities, where ncol is the number of classes.

Value

a matrix of word probability(nrow = 2, ncol = V (size of vocab))


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