在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
The Difference Between Distriminative Models And Generative Models 简单来说,判别模型对p(y|x)建模,而生成模型对p(x|y)建模,其中x是特征(features),y是标签(labels)。判别模型直接可以预测新实例的值,生成模型要借助贝叶斯公式p(y|x) = p(x|y)p(y)/p(x)来做预测。 典型的判别模型: SVM, 逻辑回归,最大熵 典型的生成模型:朴素贝叶斯,高斯混合,LDA。 Andrew NG 版的说明如下: Algorithms that try to learn p(y|x) directly (such as logistic regression), or algorithms that try to learn mappings directly from the space of inputs X to the labels {0, 1}, (such as the perceptron algorithm) are called discrim- inative learning algorithms. Here, we’ll talk about algorithms that instead try to model p(x|y) (and p(y)). These algorithms are called generative learning algorithms. For instance, if y indicates whether an example is a dog (0) or an elephant (1), then p(x|y = 0) models the distribution of dogs’ features, and p(x|y = 1) models the distribution of elephants’ features. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13