SSRN icon indicating copy to clipboard operation
SSRN copied to clipboard

I am getting only class 16 indices.

Open sandeep-25 opened this issue 6 years ago • 1 comments

Hello zhilongzhong .Could you go through the code in line number 40,41,42 in SSRN_IN.py file.The below line is giving me only indices of class 16. m = np.max(groundTruth) for i in range(m): indices = [j for j, x in enumerate(groundTruth.ravel().tolist()) if x == i + 1]

sandeep-25 avatar Dec 21 '18 16:12 sandeep-25

m should be 16, which indicates the number of classes in Indiana Pines dataset. indices is a temporal list that store positions for each class. You can find positions for 16 classes in the set train, which has 16 elements.

zilongzhong avatar Dec 22 '18 23:12 zilongzhong