get_word_prob: get log likelihood of a document

View source: R/functions_EM_helper.R

get_word_probR Documentation

get log likelihood of a document

Description

get log likelihood of a document

Usage

get_word_prob(.D, .E, .beta = NA, .fixed_words = NULL)

Arguments

.D

document term matrix

.E

labels for all documents

.beta

prior parameter for eta

.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.