当前位置:网站首页>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

边栏推荐
- How do vision transformer work?【论文解读】
- allennlp 中的TypeError: Object of type Tensor is not JSON serializable错误
- MMDetection安装问题
- SSM second hand trading website
- Jordan decomposition example of matrix
- 半监督之mixmatch
- 深度学习分类优化实战
- [introduction to information retrieval] Chapter 6 term weight and vector space model
- [torch] some ideas to solve the problem that the tensor parameters have gradients and the weight is not updated
- Practice and thinking of offline data warehouse and Bi development
猜你喜欢

【BERT,GPT+KG调研】Pretrain model融合knowledge的论文集锦

使用百度网盘上传数据到服务器上

Faster-ILOD、maskrcnn_benchmark安装过程及遇到问题

Play online games with mame32k
![[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)

【多模态】CLIP模型
![[in depth learning series (8)]: principles of transform and actual combat](/img/2e/89920de2273b6f1bc3b21a19c2ecbe.png)
[in depth learning series (8)]: principles of transform and actual combat

常见CNN网络创新点

自然辩证辨析题整理
随机推荐
【Paper Reading】
Oracle segment advisor, how to deal with row link row migration, reduce high water level
深度学习分类优化实战
Drawing mechanism of view (II)
One field in thinkphp5 corresponds to multiple fuzzy queries
A summary of a middle-aged programmer's study of modern Chinese history
MySQL composite index with or without ID
Illustration of etcd access in kubernetes
程序的执行
[introduction to information retrieval] Chapter 3 fault tolerant retrieval
基于pytorch的YOLOv5单张图片检测实现
叮咚,Redis OM对象映射框架来了
ABM论文翻译
SSM second hand trading website
Delete the contents under the specified folder in PHP
How do vision transformer work?【论文解读】
Optimization method: meaning of common mathematical symbols
第一个快应用(quickapp)demo
conda常用命令
Practice and thinking of offline data warehouse and Bi development