Dataset and Ground Truth

Rome Dataset

 1 from scipy.io import loadmat, savemat
 2 import numpy as np
 3 import ia636
 4 
 5 
 6 rome = loadmat(find_attachment_file('homeroberto/homeroberto_extinction_profile_rome_dataset/rome_dataset.mat'))
 7 rome_data = rome['Pan']
 8 rome_gt = rome['GT']
 9 print 0.1*rome_gt.size
10 adshow(ia636.ianormalize(rome_data),"Data")
11 #adshow(ia636.ialblshow(rome_gt),"Labels")
12 adshow(ia636.ianormalize(rome_gt),"Labels")
13 
14 labels = set(rome_gt.ravel())
15 for label in labels:
16     print 'Label %d count %f' %(label,(rome_gt == label).sum()*1.0/rome_gt.size)
115473.6
Label 0 count 0.328504
Label 1 count 0.156967
Label 2 count 0.095101
Label 3 count 0.141616
Label 4 count 0.013908
Label 5 count 0.060288
Label 6 count 0.078702
Label 7 count 0.070381
Label 8 count 0.013039
Label 9 count 0.041495

Data

Labels

Rvk_IKONOS

 1 ikonos = loadmat(find_attachment_file('homeroberto/homeroberto_extinction_profiles/Rvk_IKONOS.mat'))
 2 ikonos_data = ikonos['Rvk_IKONOS_PAN']
 3 ikonos_train = ikonos['train']
 4 ikonos_test = ikonos['test']
 5 
 6 print set(ikonos_train.ravel())
 7 print set(ikonos_test.ravel())
 8 
 9 adshow(ia636.ianormalize(ikonos_data),"Data")
10 adshow(ia636.ianormalize(ikonos_train),"Train")
11 adshow(ia636.ianormalize(ikonos_test),"Test")
set([0, 1, 2, 3, 4, 5, 6])
set([0, 1, 2, 3, 4, 5, 6])

Data

Train

Test

Rvk_IKONOS2

 1 ikonos2 = loadmat(find_attachment_file('homeroberto/homeroberto_extinction_profiles/Rvk_IKONOS2.mat'))
 2 ikonos2_data = ikonos2['Rvk_IKONOS_PAN']
 3 ikonos2_train = ikonos2['train']
 4 ikonos2_test = ikonos2['test']
 5 
 6 print set(ikonos2_train.ravel())
 7 print set(ikonos2_test.ravel())
 8 
 9 
10 adshow(ia636.ianormalize(ikonos2_data),"Data")
11 adshow(ia636.ianormalize(ikonos2_train),"Train")
12 adshow(ia636.ianormalize(ikonos2_test),"Test")
set([0, 1, 2, 3, 4, 5, 6])
set([0, 1, 2, 3, 4, 5, 6])

Data

Train

Test