Using the the N highest probability tokens for each topic, calculate the Hellinger distance between the token frequencies and the document frequencies
tf_df_dist(topic_model, dtm_data, top_n_tokens = 10)
a fitted topic model object from one of the following:
tm-class
a document-term matrix of token counts coercible to simple_triplet_matrix
an integer indicating the number of top words to consider, the default is 10
A vector of distances with length equal to the number of topics in the fitted model
Jordan Boyd-Graber, David Mimno, and David Newman, 2014. Care and Feeding of Topic Models: Problems, Diagnostics, and Improvements. CRC Handbooks ofModern Statistical Methods. CRC Press, Boca Raton, Florida.