当前位置:网站首页>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
边栏推荐
- Tencent machine test questions
- 离线数仓和bi开发的实践和思考
- [medical] participants to medical ontologies: Content Selection for Clinical Abstract Summarization
- Calculate the total in the tree structure data in PHP
- 使用 Compose 实现可见 ScrollBar
- mmdetection训练自己的数据集--CVAT标注文件导出coco格式及相关操作
- 一份Slide两张表格带你快速了解目标检测
- Oracle EBS ADI development steps
- 如何高效开发一款微信小程序
- Spark SQL task performance optimization (basic)
猜你喜欢
MoCO ——Momentum Contrast for Unsupervised Visual Representation Learning
Spark SQL task performance optimization (basic)
[CVPR‘22 Oral2] TAN: Temporal Alignment Networks for Long-term Video
Implementation of yolov5 single image detection based on pytorch
【论文介绍】R-Drop: Regularized Dropout for Neural Networks
SSM second hand trading website
Illustration of etcd access in kubernetes
[paper introduction] r-drop: regulated dropout for neural networks
【信息检索导论】第七章搜索系统中的评分计算
ABM论文翻译
随机推荐
【Ranking】Pre-trained Language Model based Ranking in Baidu Search
Calculate the total in the tree structure data in PHP
Interpretation of ernie1.0 and ernie2.0 papers
华为机试题
Yaml file of ingress controller 0.47.0
One field in thinkphp5 corresponds to multiple fuzzy queries
基于pytorch的YOLOv5单张图片检测实现
Faster-ILOD、maskrcnn_ Benchmark trains its own VOC data set and problem summary
Use Baidu network disk to upload data to the server
Implementation of yolov5 single image detection based on pytorch
[tricks] whiteningbert: an easy unsupervised sentence embedding approach
Faster-ILOD、maskrcnn_benchmark训练自己的voc数据集及问题汇总
Oracle segment advisor, how to deal with row link row migration, reduce high water level
【MEDICAL】Attend to Medical Ontologies: Content Selection for Clinical Abstractive Summarization
view的绘制机制(二)
MMDetection安装问题
mmdetection训练自己的数据集--CVAT标注文件导出coco格式及相关操作
label propagation 标签传播
Win10 solves the problem that Internet Explorer cannot be installed
论文tips