当前位置:网站首页>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 :
边栏推荐
- Yolov5 series (I) -- network visualization tool netron
- "Seven weapons" in the "treasure chest" of machine learning: Zhou Zhihua leads the publication of the new book "machine learning theory guide"
- The markdown file obtains the pictures of the network and stores them locally and modifies the URL
- 视觉上位系统设计开发(halcon-winform)-4.通信管理
- Analysis of development mode process based on SVN branch
- 【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer
- Atlas atlas torque gun USB communication tutorial based on mtcom
- Puppet automatic operation and maintenance troubleshooting cases
- 基础SQL教程
- socket. IO build distributed web push server
猜你喜欢
解决pushgateway数据多次推送会覆盖的问题
【云原生训练营】模块八 Kubernetes 生命周期管理和服务发现
Halcon与Winform学习第一节
Leasing cases of the implementation of the new regulations on the rental of jointly owned houses in Beijing
Kubernetes帶你從頭到尾捋一遍
Introduction, use and principle of synchronized
视觉上位系统设计开发(halcon-winform)-5.相机
Jvm-02-class loading subsystem
What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
什么是one-hot encoding?Pytorch中,将label变成one hot编码的两种方式
随机推荐
Global and Chinese market of trimethylamine 2022-2028: Research Report on technology, participants, trends, market size and share
What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
视觉上位系统设计开发(halcon-winform)-4.通信管理
百度智能云助力石嘴山市升级“互联网+养老服务”智慧康养新模式
Visual upper system design and development (Halcon WinForm) -4 Communication management
视觉上位系统设计开发(halcon-winform)-2.全局变量设计
自定义注解
[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
Finally, someone explained the financial risk management clearly
[daily training] 395 Longest substring with at least k repeated characters
redis单线程问题强制梳理门外汉扫盲
Search in the two-dimensional array of leetcode sword offer (10)
QT common sentence notes
Puppet automatic operation and maintenance troubleshooting cases
Leetcode sword offer find the number I (nine) in the sorted array
Can‘t connect to MySQL server on ‘localhost‘
Visual upper system design and development (Halcon WinForm) -1 Process node design
[Yu Yue education] scientific computing and MATLAB language reference materials of Central South University
[pytorch learning notes] datasets and dataloaders
Jvm-02-class loading subsystem