Study notes for Latent Dirichlet Allocation

LDA是一种生成模型,假设文档是主题的混合,而主题是单词的概率分布。每个文档都有一个话题分布,每个话题又有一个单词分布。LDA使用Dirichlet先验,并通过Gibbs采样进行推断。主题数量影响结果的可解释性。通过计算基于主题的相似性,可以衡量文档或单词之间的相似度。
摘要由CSDN通过智能技术生成

1. Topic Models

  • Topic models are based upon the idea that documents are mixtures of topics, where a topic is a probabilistic distribution over words. A topic model is a generative model for documents: it specifies a simple probabilistic procedure by which documents can be generated (Steyvers and Griffiths, 2007). Two general steps are taken to make a new document: 
    • Step 1, for each document, one chooses a distribution over topics.
    • Step 2, to generate each word in that document, one chooses a topic at random according to the distribution (because one same word may belong to various topics with different probabilities.). Then a word is drawn from the chosen topic in terms of probabilistic sampling, e.g. as illustrated in Figures 1 and 2. 
  • When fitting a generative model, the goal is to find the best set of latent variables that can explain the observed data (i.e., observed words in documents), assuming that the model actually generated the data. 
  • Many different generative models have been proposed under the same assumption that a document is a mixture of topics, but make slightly different statistical assumptions. 
  • The number of topics will affect the interpretability of the results. A solution with too few topics will generally result in very broad topics whereas a solution with too many topics will result in uninterpretable topics that pick out idiosyncratic word combinations. One way is to choose the number of topics that leads to best generalization performance to new tasks. 
  • Notations:
    • P(z) is the probability distribution over topics z in a particular document
    • P(w|z) is the probability distribution over words w given topic z. 
    • The model specifies the distribution over words within a document is:
      where t is the number of topics, is the probability that the j-th topic is chosen/sampled for the i-th word token, and
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值