Skip to content

Commit

Permalink
Update evaluation.m
Browse files Browse the repository at this point in the history
  • Loading branch information
zhunzhong07 committed Jan 29, 2017
1 parent de9c49c commit 76eb41f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions market_evaluation/utils/evaluation.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
r1_pairwise = zeros(size(dist, 2), 6);% pairwise rank 1 precision
ap_pairwise = zeros(size(dist, 2), 6); % pairwise average precision

for k = 1:size(dist, 2)
parfor k = 1:size(dist, 2)
k;
score = dist(:, k);
q_label = label_query(k);
Expand All @@ -25,4 +25,4 @@
CMC = sum(CMC, 2)./size(dist, 2);
CMC = CMC';
ap(isnan(ap) == 1) = 0;
map = sum(ap)/length(ap);
map = sum(ap)/length(ap);

0 comments on commit 76eb41f

Please sign in to comment.