lda有监督_我们如何将无监督的LDA更改为半监督的指导LDA

本文讲述了作者的创业公司如何从使用无监督的LDA转向半监督的GuidedLDA。LDA是一种主题建模技术,用于将文档分组到相关主题中。GuidedLDA允许通过种子词来指导主题模型,以便更好地分离和分类主题。文章介绍了LDA的工作原理、GuidedLDA的概念以及如何实施这一转换,同时提供了GuidedLDA的Python库链接。
摘要由CSDN通过智能技术生成

lda有监督

by Vikash Singh

由Vikash Singh

我们的创业公司如何从无监督LDA转换为半监督GuidedLDA (How our startup switched from Unsupervised LDA to Semi-Supervised GuidedLDA)

This is the story of how and why we had to write our own form of Latent Dirichlet Allocation (LDA). I also talk about why we needed to build a Guided Topic Model (GuidedLDA), and the process of open sourcing everything on GitHub.

这是关于我们如何以及为什么必须编写自己的潜在狄利克雷分配 (LDA)形式的故事。 我还讨论了为什么我们需要构建引导主题模型(GuidedLDA),以及在GitHub上开源所有内容的过程。

什么是LDA(主题建模)? (What Is LDA (Topic Modeling)?)

Lets say that you have a set of News Articles which were documents. By reading those articles you will be able to tell if they are about Sports, Politics or Science.

假设您有一组新闻文章,它们是文档。 通过阅读这些文章,您可以判断它们是否涉及体育,政治或科学。

For the following titles you will agree that 1 and 5 are about Politics, 2 and 4 about Sports, and 3 and 6 about Science:

对于以下标题,您将同意1和5与政治有关,2和4与体育有关,3和6与科学有关:

For a human being it’s not a challenge to figure out which topic a news article belongs to. But how can we teach a computer to understand the same topics?

对于一个人来说,弄清新闻属于哪个主题并不是一个挑战。 但是,我们如何教计算机理解相同的主题?

This is where topic modeling comes into picture. Topic modeling is an unsupervised class of machine learning Algorithms. These models are generally good at grouping words together into topics. LDA is the most popular topic modeling technique.

这就是主题建模的场景。 主题建模是机器学习算法的无监督类。 这些模型通常擅长将单词组合成主题。 LDA是最流行的主题建模技术。

Once we have the words grouped into topics, we can now see which group of words the news articles and document talks about. Then we can classify it into that group or topic.

将单词分为主题之后,我们现在可以看到新闻文章和文档谈论的单词。 然后,我们可以将其分类为该组或主题。

As we can see, this new News Article talks about Nobel Prize. We can now predict that this document talks about Science topic.

如我们所见,这篇新的新闻文章谈到了诺贝尔奖 。 现在,我们可以预测该文档将讨论“ 科学”主题。

Note: Words are not grouped directly into topics. Rather a probability is calculated such as “What is the probability of a word belonging to a topic?”.

注意 :单词不会直接分为主题。 而是计算概率,例如“单词属于主题的概率是多少?”。

It’s given by p(t|w). Or probability of topic t given word w. At it’s core it’s just Bayesian_probability.

p(t | w)给出。 或主题t给定单词w的概率。 它的核心只是Bayesian_probability

I would love to talk more about it, but don’t want to deviate from the core problem. If you are interested, you can read more about it

  • 3
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值