123456789101112131415161718192021222324 |
- clear all
- close all
- clc
- ll=16;
- kk=20;
- addpath('../Functions');
- addpath('./Functions');
- XSetMat=double(fvecs_read('../Data/sift/sift_base.fvecs'));
- if(1)
- XSetTable=lsh('e2lsh',ll,kk,size(XSetMat,1),XSetMat,'range',255,'w',-4);
- save(sprintf('./Data/XSetTableL%.0fk%.0f.mat',ll,kk),'XSetTable');
- else
- load(sprintf('./Data/XSetTableL%.0fk%.0f.mat',ll,kk));
- end
- YSetMat=double(fvecs_read('../Data/sift/sift_base.fvecs'));
- [mi,ma,me]=lshstats(XSetTable,'test',XSetMat,YSetMat,2);
|