Filter löschen
Filter löschen

how to apply confusion matrix?

3 Ansichten (letzte 30 Tage)
Ekta Sharma
Ekta Sharma am 7 Jul. 2016
Kommentiert: Image Analyst am 13 Okt. 2021
I have applied three methods i.e. chain code,pixel matching and morphological operations. Depending upon these methods three classes are there in which I have classified tool state i.e. normal, worn or unknown. If for example my actual output is 1- for normal, 8- worn,1- unknown and predicted are 2-normal,1- unknown and 7-worn. How it can be represented in confusion matrix to determine false positive,true positive etc.

Antworten (1)

Image Analyst
Image Analyst am 7 Jul. 2016
You can't just have bulk counts for how many are in each class - that's not sufficient. You need to know for each sample image, what the measured/predicted classification was, and what the actual/true classification was. Once you know that, it's trivial to construct the confusion matrix.
  2 Kommentare
messaoudi nada
messaoudi nada am 13 Okt. 2021
Dear @Image Analyst ,i have target= 640*1 double and output=640*1 double , i calculated confusion matrix by the matlab function confusionmat , when i tried to plot the confusion matrix by the function plotconfusion " plotconfusion(target ,output) , but it didn't work ,, can u help me , i dont know what's wrong in my code
Image Analyst
Image Analyst am 13 Okt. 2021
Attach your target and output in a .mat file.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by