当前位置:网站首页>The difference and understanding between generative model and discriminant model
The difference and understanding between generative model and discriminant model
2022-07-02 07:37:00 【xiaobai_ Ry】
One 、 Discrimination method and generation method
Supervised learning methods can be divided into discrimination methods and generation methods .
Discrimination method (Discriminative approach)
Learning decision function directly from data Y=f(X) Or conditional probability distribution P(Y|X) As a model of prediction , The discriminant model . The discrimination method is concerned with the given input X, What kind of output should be predicted Y. The basic idea is to establish the discriminant function under the condition of limited samples , Regardless of the sample generation model , Study the prediction model directly . Typical discriminant models include k a near neighbor , Perception level , Decision tree , Support vector machine, etc .
Generation method (Generative approach)
Learning joint probability density distribution from data P(X,Y), Then from P(Y|X)=P(X,Y)/P(X) Find the conditional probability distribution P(Y|X) As a model of prediction , It's a generative model . This method represents a given input X And generate output Y The generative relationship of . The basic idea is to first establish the joint probability density model of samples P(X,Y), And then we get the posterior probability P(Y|X), Use it again to classify . In this process, we need to calculate the probability distribution of the training data P(X), So as long as there are a lot of data samples , Got P(X) In order to well describe the real distribution of training data 【 Like tossing coins 】. Generation model is used to model randomly generated observations , Especially when some hidden parameters are given . Typical generation models are : Naive Bayes and hidden Markov models .
Two 、 Discriminant model and generative model
1. Intuitively :
Generate models : Source oriented , How to generate when focusing on data , And then classify a signal .( Signal input , The generation model determines which category is most likely to generate this signal , Then this signal belongs to which category .
Discriminant model : Results oriented , Focus on the differences between categories , Don't care about how the sample data is generated , According to the “ Demarcation line " To simply classify a given sample .
2. From the formula we know :
Generate models : When you study, you get P(X,Y), According to the formula, we get P(Y|X); The maximum a posteriori probability method is used in prediction (MAP) Get the forecast category Y.
Discriminant model : Learn directly to get P(Y|X), recycling MAP obtain Y; Or learn a mapping function directly Y=F(X)
3. The difference and connection between generative model and discriminant model

边栏推荐
- 【Ranking】Pre-trained Language Model based Ranking in Baidu Search
- 使用Matlab实现:幂法、反幂法(原点位移)
- ModuleNotFoundError: No module named ‘pytest‘
- 離線數倉和bi開發的實踐和思考
- 生成模型与判别模型的区别与理解
- Determine whether the version number is continuous in PHP
- Feeling after reading "agile and tidy way: return to origin"
- Drawing mechanism of view (I)
- 【论文介绍】R-Drop: Regularized Dropout for Neural Networks
- 使用百度网盘上传数据到服务器上
猜你喜欢

Cognitive science popularization of middle-aged people

机器学习理论学习:感知机

【信息检索导论】第七章搜索系统中的评分计算

程序的内存模型

【MEDICAL】Attend to Medical Ontologies: Content Selection for Clinical Abstractive Summarization

Using MATLAB to realize: Jacobi, Gauss Seidel iteration

Faster-ILOD、maskrcnn_ Benchmark trains its own VOC data set and problem summary

点云数据理解(PointNet实现第3步)
![[introduction to information retrieval] Chapter 1 Boolean retrieval](/img/78/df4bcefd3307d7cdd25a9ee345f244.png)
[introduction to information retrieval] Chapter 1 Boolean retrieval

Agile development of software development pattern (scrum)
随机推荐
【BERT,GPT+KG调研】Pretrain model融合knowledge的论文集锦
Classloader and parental delegation mechanism
Drawing mechanism of view (II)
Faster-ILOD、maskrcnn_benchmark安装过程及遇到问题
【Ranking】Pre-trained Language Model based Ranking in Baidu Search
传统目标检测笔记1__ Viola Jones
机器学习理论学习:感知机
Huawei machine test questions
Mmdetection installation problem
实现接口 Interface Iterable<T>
【信息检索导论】第六章 词项权重及向量空间模型
The first quickapp demo
Open failed: enoent (no such file or directory) / (operation not permitted)
latex公式正体和斜体
【深度学习系列(八)】:Transoform原理及实战之原理篇
conda常用命令
Regular expressions in MySQL
allennlp 中的TypeError: Object of type Tensor is not JSON serializable错误
架构设计三原则
[in depth learning series (8)]: principles of transform and actual combat