SSRN
SSRN copied to clipboard
Use of index to assignment
Can you please tell the use of the following code:- assign_0 = value // Col + pad_length assign_1 = value % Col + pad_length new_assign[counter] = [assign_0, assign_1]
These snippets are used for indexing newly sampled HSI cuboids.
okay, I got it.
You are just converting the selected indices into specific image location in row and coloumn space.
for an example,
t = np.arange(16).reshape(4,4)
indices = 7 # was selected for train
the original image location of 7 values (1,3)
now indexToAssignment function will give the (row, column) position. Is it so? or am I missing somthing?
That's correct.
On Wed, 16 Jan 2019 at 20:06, TanmDL [email protected] wrote:
okay, I got it. You are just converting the selected indices into specific image location in row and coloumn space. for an example, t = np.arange(16).reshape(4,4) indices = 7 # was selected for train the original image location of 7 values (1,3) now indexToAssignment function will give the (row, column) position. Is it so? or am I missing somthing?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zilongzhong/SSRN/issues/10#issuecomment-455003559, or mute the thread https://github.com/notifications/unsubscribe-auth/APQzzq8g4aFFG6knZn9eSjPiFkfu3G-Dks5vD8yMgaJpZM4ZhLFe .