Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

np argmin top n

# For a 2D array
indices = np.argpartition(arr, -N, axis=1)[:, -N:]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #np #argmin #top
ADD COMMENT
Topic
Name
6+7 =