判别式模型与生成式模型的简单比较
来源:互联网 发布:你好的网络用语 编辑:程序博客网 时间:2024/05/04 16:54
Let's say you have input data x and you want to classify the data into labels y. A generative model learns the joint probability distribution p(x,y) and a discriminative model learns the conditional probability distribution p(y|x) – which you should read as 'the probability of y given x'.
Here's a really simple example. Suppose you have the following data in the form (x,y):
(1,0), (1,0), (2,0), (2, 1)
p(x,y) is
y=0 y=1x=11/20x=21/4 1/4
p(y|x) is
y=0 y=1x=110x=21/2 1/2
If you take a few minutes to stare at those two matrices, you will understand the difference between the two probability distributions.
The distribution p(y|x) is the natural distribution for classifying a given example x into a class y, which is why algorithms that model this directly are called discriminative algorithms. Generative algorithms model p(x,y), which can be tranformed into p(y|x) by applying Bayes rule and then used for classification. However, the distribution p(x,y) can also be used for other purposes. For example you could use p(x,y) to generate likely (x,y) pairs.
From the description above you might be thinking that generative models are more generally useful and therefore better, but it's not as simple as that. This paper is a very popular reference on the subject of discriminative vs. generative classifiers, but it's pretty heavy going. The overall gist is that discriminative models generally outperform generative models in classification tasks.
两个模型的对比
- 判别式模型与生成式模型的简单比较
- 判别式与生成式模型的区别
- 生成模型与判别式模型的区别
- 判别式模型与生成式模型
- 判别式模型与生成式模型
- 判别式模型与生成式模型
- 判别式模型与生成式模型
- 判别式模型与生成式模型
- 判别式模型与生成式模型
- 判别式模型与生成式模型
- 判别式模型与生成式模型
- 判别式模型与生成式模型(一)
- 判别式模型与生成式模型(二)
- 判别式模型与生成式模型
- 判别式模型与生成式模型
- 判别式模型与生成式模型
- 判别式模型与生成式模型
- 判别式模型与生成式模型
- Java中HashMap的实现原理
- js输入
- 进程间通讯之总结篇
- 2017-8-27 R语言学习路线
- domain、entity和model的package的不同用法
- 判别式模型与生成式模型的简单比较
- CRF的matlab工具箱
- 选择排序算法
- MySql的索引类型
- 2017-4-21 WebService初步使用
- 雷神G150TB笔记本如何用u盘装win7系统教程
- python 新式类学习随笔-定制类的特殊方法(1)
- gitignore
- android中xml tools属性详解