当前位置:网站首页>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
边栏推荐
- Cognitive science popularization of middle-aged people
- Using MATLAB to realize: power method, inverse power method (origin displacement)
- How to efficiently develop a wechat applet
- PointNet原理证明与理解
- [torch] the most concise logging User Guide
- Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory'
- Three principles of architecture design
- Implement interface Iterable & lt; T>
- Open failed: enoent (no such file or directory) / (operation not permitted)
- 图片数据爬取工具Image-Downloader的安装和使用
猜你喜欢
Use Baidu network disk to upload data to the server
基于onnxruntime的YOLOv5单张图片检测实现
Faster-ILOD、maskrcnn_ Benchmark training coco data set and problem summary
点云数据理解(PointNet实现第3步)
mmdetection训练自己的数据集--CVAT标注文件导出coco格式及相关操作
一份Slide两张表格带你快速了解目标检测
[introduction to information retrieval] Chapter 7 scoring calculation in search system
Feeling after reading "agile and tidy way: return to origin"
Practice and thinking of offline data warehouse and Bi development
程序的内存模型
随机推荐
【多模态】CLIP模型
Point cloud data understanding (step 3 of pointnet Implementation)
view的绘制机制(三)
Pratique et réflexion sur l'entrepôt de données hors ligne et le développement Bi
MoCO ——Momentum Contrast for Unsupervised Visual Representation Learning
yolov3训练自己的数据集(MMDetection)
常见CNN网络创新点
程序的内存模型
Agile development of software development pattern (scrum)
PHP returns the corresponding key value according to the value in the two-dimensional array
Use matlab to realize: chord cut method, dichotomy, CG method, find zero point and solve equation
ModuleNotFoundError: No module named ‘pytest‘
SSM supermarket order management system
【信息检索导论】第三章 容错式检索
[introduction to information retrieval] Chapter 6 term weight and vector space model
Yaml file of ingress controller 0.47.0
【Programming】
Alpha Beta Pruning in Adversarial Search
iOD及Detectron2搭建过程问题记录
win10+vs2017+denseflow编译