1 / 1

function [y]=NMRR( q,feat ) %feat: 1:ehd feature % 2:color feature % 3:shape feature

% compute K(q) L=unique(label); for i =1:4 TAB( i )=length(find(label==L( i ))); end K(q)=min(4*NG(q), 2* max(TAB)); % CMPUTE NR(q) Idx =index(q,1:K(q)); LabelIdx =label( Idx ); NR(q)=length(find( LabelIdx ==la)); %compute MR(q) MR(q)=NG(q)-NR(q); % compute rank

apu
Download Presentation

function [y]=NMRR( q,feat ) %feat: 1:ehd feature % 2:color feature % 3:shape feature

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. % compute K(q) L=unique(label); for i=1:4 TAB(i)=length(find(label==L(i))); end K(q)=min(4*NG(q), 2* max(TAB)); % CMPUTE NR(q) Idx=index(q,1:K(q)); LabelIdx=label(Idx); NR(q)=length(find(LabelIdx==la)); %compute MR(q) MR(q)=NG(q)-NR(q); % compute rank Rank(index(q,:))=1:length(label); I=find(label==la); I2=find(Rank(I)>K(q)); Rank(I(I2))=1.25*K(q); % compute AVR(q) AVR(q)= sum (Rank(I))/NG(q); MRR(q)= AVR(q)-0.5*(1+NG(q)); y=MRR(q)/(1.25*K(q)-0.5-0.5*NG(q)); function [y]=NMRR(q,feat) %feat: 1:ehd feature % 2:color feature % 3:shape feature switch feat case 1 load indexehdDist.mat; index=indexehdDist; case 2 load indexcolorDist.mat; index=indexcolorDist; case 3 load indexshapeDist.mat; index=indexshapeDist; end load names.mat load label.mat % compute NG(q) la=label(q); NG(q)=length(find(label==la));

More Related