DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
argmin returns one value for 2d array
In [9]: np.where(x == np.min(x)) #or In [9]: divmod(x.argmin(), x.shape[1])
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#argmin
#returns
#array
ADD COMMENT
Topic
COMMENT
Name
8+5 =
Submit