get_class_prob: get weighted log of class probability

View source: R/functions_EM_helper.R

get_class_probR Documentation

get weighted log of class probability

Description

get weighted log of class probability

Usage

get_class_prob(.D_train, .D_test, .E, .n_class, .lambda, .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

.n_class

number of classes

.lambda

weight

supervise

T if supervise, F is unsupervise

Value

a matrix of log likelihood of a class(nrow = 2, ncol = # of document)


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