Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

Run_WNNetsOverPQ_Fine_Coarse.m 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. clear all; close all; clc;
  2. addpath('./SIFTs Library');
  3. bVSetMat=double(fvecs_read('../Data/sift/sift_learn.fvecs'));
  4. bWSetMat=double(fvecs_read('../Data/sift/sift_base.fvecs'));
  5. bZSetMat=double(fvecs_read('../Data/sift/sift_query.fvecs'));
  6. iMinDistExh=ivecs_read('../Data/sift/sift_groundtruth.ivecs')+1;
  7. kkf=256;
  8. mmf=16;
  9. nn=1e6./[1e3 1.25e3 2e3 2.5e3 5e3 8e3 1e4];
  10. kkc=[1, 10:10:100];
  11. mmc=2.^[1:4];
  12. L0factor=0.1;
  13. kkc=[1 2];mmc=1;nn=1e3;
  14. lnn=length(nn); lmm=length(mmc); lkk=length(kkc); ltt=lnn*lmm*lkk;
  15. pperc=[];
  16. for inn=1:lnn
  17. for imm=1:lmm
  18. for ikk=1:lkk
  19. fprintf(1,'%s\n',('-')*ones(1,64));
  20. str=sprintf('Overall Progress: %d simulations running',ltt);
  21. fprintf(1,'%s%s ',str,('.')*ones(1,55-length(str)));
  22. pp=((inn-1)*lmm*lkk+(imm-1)*lkk+ikk)/(lnn*lmm*lkk);
  23. perc=sprintf('%2.2f%%',pp*100);
  24. fprintf(1,'%s',sprintf('\b')*ones(1,length(pperc)));
  25. fprintf(1,'%s\n',perc); pperc=perc;
  26. fprintf(1,'%s\n',('-')*ones(1,64));
  27. [LearnDist(ikk,imm,inn), NNeighPerf(ikk,imm,inn), ScoresCoarseCpxty(ikk,imm,inn), ...
  28. ADCfineCpxty(ikk,imm,inn),NormCpxty(ikk,imm,inn), NormPQCpxty(ikk,imm,inn)]=...
  29. WNNetsOverPQ_Fine_Coarse_function(bVSetMat,bWSetMat,bZSetMat,iMinDistExh,kkf,mmf,...
  30. kkc(ikk),mmc(imm),nn(inn),L0factor);
  31. fprintf(1,'%s\n',('-')*ones(1,64));
  32. clc;
  33. end
  34. end
  35. end
  36. fprintf(1,'%s',sprintf('\b')*ones(1,length(pperc)));
  37. fprintf('Done.\n');
  38. fprintf(1,'%s\n',('-')*ones(1,64));