当前位置:网站首页>Calculation method of confusion matrix
Calculation method of confusion matrix
2022-07-25 03:14:00 【Billie studies hard】
There are three sequences in the figure below ,L Indicates the tag value ,P Represents the predicted value ,n Indicates the number of classifications .
We need to calculate n×L+P To calculate the predicted result , When L and P When taking the maximum , The result is its maximum computing space .
Such as below ,L∈(0~5),P∈(0~5), be n×L+P∈(0~35)
Then we will n×L+P Mapping to 36 One dimensional sequence of dimensions , As shown in the last sequence in the figure below , This sequence represents the calculation n×L+P The number of occurrences of each value in , So 1,2 And so on are the times of occurrence of its corresponding value .
Final , We need to get a confusion matrix , So we need to map one-dimensional sequence to two-dimensional space .
Calculate the numerical storage space of two-dimensional matrix bin=max(n×L+P)+1
Then the confusion matrix is
Matrix , In the picture 0~35 The sequence of can generate 6×6 Matrix

Pictured , Press 0~35 The index of is sorted in order , Get the confusion matrix
Matrix , Blue represents line and , Green represents columns and , Pink represents diagonal elements
The evaluation index in segmentation and the calculation method of its corresponding confusion matrix are as follows

边栏推荐
- How is the virtual DOM different from the actual DOM?
- [jailhouse article] certify the uncertified rewards assessment of virtualization for mixed criticality
- C language function operation
- Innobackupex parameter description
- Openlayers ol ext: Transform object, rotate, stretch, zoom in
- Inheritance (prototype)
- 05 - MVVM model
- Time formatting
- Query the information of students whose grades are above 80
- Unified return data format
猜你喜欢

Question D: pruning shrubs

Stm32cubemx quadrature encoder

Review all frames before sum of SSM frames
![[jailhouse article] certify the uncertified rewards assessment of virtualization for mixed criticality](/img/12/1763571a99e6ef15fb7f9512c54e9b.png)
[jailhouse article] certify the uncertified rewards assessment of virtualization for mixed criticality

Jenkins plug-in development -- plug-in expansion

Unity refers to a variable in another class (its own instance)

New key points of ES6

Chrome process architecture

Use of stm32cubemonitor part I - data plotting and instrument display

Bgy development small example
随机推荐
Three ways to solve your performance management problems
Function of each layer of data warehouse
Arduino + si5351 square wave generator
Banana pie bpi-m5 toss record (2) -- compile u-boot
FLASH read / write problem of stm32cubemx
Riotboard development board series notes (6) -- buildreoot building system image
Resolve the error: org.apache.ibatis.binding.bindingexception
Brief understanding of operational amplifier
JS construct binary tree
Stm32cubemx quadrature encoder
ECMAScript new features
NVM installation and use
kettle_ Configure database connection_ report errors
mysql_ Account authorization permission recycling, account locking and unlocking, account creation and deletion
Handwriting promise
JS written test questions -- random numbers, array de duplication
Innobackupex parameter description
Error: tomee required to support ear/ejb deployment
C language function operation
TypeScript