1. 程式人生 > >資料集處理

資料集處理

wiki測試集從693到462

clear

load('test_txt.mat');
load('indice.mat');
load('test_img.mat');
load('test_lab.mat')
test_txt_tmp=zeros(693,300);
test_img_tmp=zeros(693,4096);
test_lab_tmp=zeros(693,1);
for i=1:693
    m=indice(i)+1;
    test_txt_tmp(i,:)=test_txt(m,:);
    test_img_tmp(i,:)=test_img(m,:);
    test_lab_tmp(i,:)=test_lab(m,:);
end

test_txt=test_txt_tmp(232:693,:);
test_img=test_img_tmp(232:693,:);
test_lab=test_lab_tmp(232:693,:);
save('./462/test_lab.mat','test_lab');
save('./462/test_txt.mat','test_txt');
save('./462/test_img.mat','test_img');