tl =
     1     1     1
     1     1     2
     2     2     2
pl =
     1     1     1
     2     1     1
     2     2     2
>> confusionmat(double(tl(:)), double(pl(:)), 'order', 1:2+1)
ans =
     4     1     0
     1     3     0
     0     0     0
>> conf_mat = confusionmat(double(tl(:)), double(pl(:)), 'order', 1:2)
conf_mat =
     4     1
     1     3
>> sum(conf_mat, 2)
ans =
     5
     4
>> nrm(:,ones(1,size(conf_mat,2)))
ans =
     5     5
     4     4
>> conf_mat./nrm(:, ones(1,size(conf_mat,2)))
ans =
    0.8000    0.2000
    0.2500    0.7500
Subscribe to:
Post Comments (Atom)
Game engines
Unity engine Unreal engine Godot engine
- 
To install pngwrite we need to install to helper library before we install pngwriter. 1. libpng 2. freetype2 We can use fink or macport to i...
- 
Parsing and displaying dates and times is often complicated because of formatting and locale issues. Java 2 Platform, Standard Edition (J2S...
 
 
No comments:
Post a Comment