动态主题模型的评估

问题描述 投票:1回答:2

我尝试评估我的动态主题模型。该模型使用gensim包装器生成。是否有任何可能的功能,如困惑或主题一致性等于“正常”主题建模?

gensim evaluation lda
2个回答
1
投票

是的,Gensim Wrapper有话题连贯性和困惑性:

# Compute Coherence Score
coherence_model_ldamallet = CoherenceModel(model=ldamallet, texts=processed_docs, dictionary=dictionary, coherence='c_v')
coherence_ldamallet = coherence_model_ldamallet.get_coherence()
print('\nCoherence Score: ', coherence_ldamallet)

您可以查看此文章以获取更多信息:14

我希望这有帮助 :)


0
投票

您可以尝试使用Wang, C., Blei, D., & Heckerman, D. (2012). Continuous time dynamic topic models. 中描述的每字预测困惑。该方法基于t-1时间索引的数据估计在时间t的文档的每字预测困惑。较低的困惑意味着更好的主题建模结果。

© www.soinside.com 2019 - 2024. All rights reserved.