@staticmethod
    def sorted_fancy_indexing(indexable, request):
        if len(request) > 1:
            indices = numpy.argsort(request)
            data = numpy.empty(shape=(len(request),) + indexable.shape[1:],
                               dtype=indexable.dtype)
            data[indices] = indexable[numpy.array(request)[indices], ...]
        else:
            data = indexable[request]
        return data
Refresh the given virtual machine
dataset/ETHPy150Open mila-udem/fuel/fuel/utils/__init__.py/Subset.sorted_fancy_indexing--crossover with--dataset/ETHPy150Open nacx/kahuna/kahuna/plugins/virtualmachine/helper.py/refresh_vm