当前位置:网站首页>生成模型与判别模型的区别与理解
生成模型与判别模型的区别与理解
2022-07-02 06:25:00 【xiaobai_Ry】
一、判别方法与生成方法
监督学习方法可分为判别方法和生成方法。
判别方法(Discriminative approach)
由数据直接学习决策函数Y=f(X)或者条件概率分布P(Y|X)作为预测的模型,即判别模型。判别方法关心的是对于给定的输入X,应该预测什么样的输出Y。基本思想是有限样本条件下建立判别函数,不考虑样本的产生模型,直接研究预测模型。典型的判别模型包括k近邻,感知级,决策树,支持向量机等。
生成方法(Generative approach)
由数据学习联合概率密度分布P(X,Y),然后由P(Y|X)=P(X,Y)/P(X)求出条件概率分布P(Y|X)作为预测的模型,即生成模型。该方法表示了给定输入X与产生输出Y的生成关系。基本思想是首先建立样本的联合概率概率密度模型P(X,Y),然后再得到后验概率P(Y|X),再利用它进行分类。在这个过程需要求出训练数据的概率分布P(X),所以只要在数据样本非常多的时候,得到的P(X)才能很好的描述训练数据真正的分布【比如抛硬币】。生成模型用于随机生成的观察值建模,特别是在给定某些隐藏参数情况下。典型的生成模型有:朴素贝叶斯和隐马尔科夫模型等。
二、判别模型与生成模型
1.从直观可知:
生成模型:源头导向型,关注数据时如何生成的,然后再对一个信号进行分类。(信号输入时,生成模型判断哪个类别最有可能产生这个信号,则这个信号就属于哪个类别。
判别模型:结果导向型,关注类别之间的差别,并不关心样本的数据时怎么生成的,根据样本之间的“分界线"来简单对给定的样本进行分类。
2.从公式上可知:
生成模型:学习时先得到P(X,Y),根据公式继而得到P(Y|X);预测时应用最大后验概率法(MAP)得到预测类别Y。
判别模型:直接学习得到P(Y|X),再利用MAP得到Y;或者直接学习得到一个映射函数Y=F(X)
3.生成模型与判别模型的区别与联系
边栏推荐
- Typeerror in allenlp: object of type tensor is not JSON serializable error
- Cognitive science popularization of middle-aged people
- oracle apex ajax process + dy 校验
- 【BERT,GPT+KG调研】Pretrain model融合knowledge的论文集锦
- 数仓模型事实表模型设计
- Spark SQL task performance optimization (basic)
- Take you to master the formatter of visual studio code
- Transform the tree structure into array in PHP (flatten the tree structure and keep the sorting of upper and lower levels)
- SSM supermarket order management system
- Pratique et réflexion sur l'entrepôt de données hors ligne et le développement Bi
猜你喜欢
Oracle 11g uses ords+pljson to implement JSON_ Table effect
【Ranking】Pre-trained Language Model based Ranking in Baidu Search
MapReduce与YARN原理解析
使用 Compose 实现可见 ScrollBar
Message queue fnd in Oracle EBS_ msg_ pub、fnd_ Application of message in pl/sql
【信息检索导论】第一章 布尔检索
[introduction to information retrieval] Chapter 1 Boolean retrieval
JSP智能小区物业管理系统
@Transitional step pit
Check log4j problems using stain analysis
随机推荐
ORACLE APEX 21.2安裝及一鍵部署
Feeling after reading "agile and tidy way: return to origin"
Two table Association of pyspark in idea2020 (field names are the same)
Optimization method: meaning of common mathematical symbols
实现接口 Interface Iterable<T>
Jordan decomposition example of matrix
华为机试题-20190417
SSM supermarket order management system
parser.parse_args 布尔值类型将False解析为True
[medical] participants to medical ontologies: Content Selection for Clinical Abstract Summarization
view的绘制机制(一)
PointNet理解(PointNet实现第4步)
Oracle RMAN automatic recovery script (migration of production data to test)
離線數倉和bi開發的實踐和思考
@Transational踩坑
Take you to master the formatter of visual studio code
使用Matlab实现:幂法、反幂法(原点位移)
Yaml file of ingress controller 0.47.0
Use matlab to realize: chord cut method, dichotomy, CG method, find zero point and solve equation
【调参Tricks】WhiteningBERT: An Easy Unsupervised Sentence Embedding Approach