View source: R/functions_EM_helper.R
get_model_diff | R Documentation |
Calculates total difference in parameter log likelihood between two runs of EM model.
get_model_diff(.class_prob, .class_prob_prev, .word_prob, .word_prob_prev)
class_prob |
Vector of current class probabilities |
class_prob_prev |
Vector of class probabilities from previous iteration |
word_prob |
Matrix of current word probabilities |
word_prob_prev |
Matrix of previous word probabilities |
Total sum difference of model parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.