I have a 65GB memory mapped numpy array that I want to index:
arr = [[...],[...],[...],[...]] #a 65GB memory mapped numpy array
idx = [[...],[...],[...],[...]] #indices for fancy indexing arr
idxed_arr = arr[idx]
Learning from this question, there is no easy or memory efficient way to mimic view when fancy indexing a numpy array. Tried many approaches like this, but they were either very slow or I ran out of memory.
My last resort would be to copy few samples at a time(which is very slow). I am open and willing to try anything at this point.