I think `np.asarray(sample_weight)[indices]` should suffice.