当前位置:网站首页>Popular understanding of ovo and ovr
Popular understanding of ovo and ovr
2022-07-03 15:20:00 【alw_ one hundred and twenty-three】
I have planned to present this series of blog posts in the form of animated interesting popular science , If you're interested Click here .
In reality, we often encounter multi classification learning tasks . Some binary classification algorithms can be directly extended to multi classification , But in more cases , We are based on some strategies , Use the binary classification algorithm to solve the multi classification problem . for example :OvO、OvR.
OvO
Suppose the distribution of the training data set is shown in the figure below ( among A
,B
,C
Represents the category of training data ):
If you want to use logistic regression algorithm to solve this problem 3
Classification problem , have access to OvO
.OvO
(One Vs One
) It is a strategy to use binary classification algorithm to solve multi classification problem . From the literal meaning, we can see that its core idea is one-on-one . So-called “ One ”, It refers to categories . and “ Yes ” It refers to the combination of two different categories from the training set to train multiple classifiers .
The rules of division are simple , It's a combination ( C n 2 C_n^2 Cn2, among n
Indicates the number of categories in the training set , In this case for 3
). As shown in the figure below ( Each rectangle represents a division ):
Use these 3
Species division , The divided training set trains the binary classifier , You can get 3
A classifier . At this point, the training phase has been completed . As shown in the figure below :
In the prediction phase , Just throw the test samples to those trained in the training stage 3
A classifier is used to predict , The final will be 3
The results predicted by classifiers are counted , The result with the highest number of votes is the predicted result . As shown in the figure below :
OvR
Suppose the distribution of the training data set is shown in the figure below ( among A
,B
,C
Represents the category of training data ):
If you want to use logistic regression algorithm to solve this problem 3
Classification problem , have access to OvR
.OvR
(One Vs Rest
) It is a strategy to use binary classification algorithm to solve multi classification problem . From the literal meaning, we can see that its core idea is A pair of surplus . A pair of surplus means to be right n
When classifying samples by category , Take one sample as a class , Consider all the remaining types of samples as another class , In this way n
A dichotomous question . So and OvO
equally , It needs to be divided in the training stage .
The division is also very simple , As shown in the figure below :
Use these 3
Species division , The divided training set trains the binary classifier , You can get 3
A classifier . At this point, the training phase has been completed . As shown in the figure below :
In the prediction phase , Just throw the test samples to those trained in the training stage 3
A classifier is used to predict , Finally, choose the category with the highest probability as the final result . As shown in the figure below :
边栏推荐
- Global and Chinese markets for infrared solutions (for industrial, civil, national defense and security applications) 2022-2028: Research Report on technology, participants, trends, market size and sh
- qt使用QZxing生成二维码
- Kubernetes带你从头到尾捋一遍
- SQL server安装位置改不了
- Atlas atlas torque gun USB communication tutorial based on mtcom
- Redis主从、哨兵、集群模式介绍
- 秒杀系统2-Redis解决分布式Session问题
- [cloud native training camp] module VIII kubernetes life cycle management and service discovery
- Leetcode sword offer find the number I (nine) in the sorted array
- [transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
猜你喜欢
Influxdb2 sources add data sources
Jvm-09 byte code introduction
什么是embedding(把物体编码为一个低维稠密向量),pytorch中nn.Embedding原理及使用
Kubernetes带你从头到尾捋一遍
Halcon and WinForm study section 2
Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
Tensorflow realizes verification code recognition (I)
C语言刷题~Leetcode与牛客网简单题
Summary of concurrent full knowledge points
Solve the problem that pushgateway data will be overwritten by multiple push
随机推荐
Jvm-08-garbage collector
Kubernetes - yaml file interpretation
Unity hierarchical bounding box AABB tree
第04章_逻辑架构
[Yu Yue education] scientific computing and MATLAB language reference materials of Central South University
Using notepad++ to build an arbitrary language development environment
Matlab r2011b neural network toolbox precautions
Kubernetes will show you from beginning to end
Markdown file titles are all reduced by one level
Global and Chinese market of marketing automation 2022-2028: Research Report on technology, participants, trends, market size and share
Apache ant extension tutorial
Visual upper system design and development (Halcon WinForm) -5 camera
阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM
Incluxdb2 buckets create database
Functional modules and application scenarios covered by the productization of user portraits
Using Tengine to solve the session problem of load balancing
Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
Redis cache penetration, cache breakdown, cache avalanche solution
mysql innodb 存储引擎的特性—行锁剖析
求字符串函数和长度不受限制的字符串函数的详解